Skip to content

Commit

Permalink
Merge pull request #23 from ddgll/hotfix-rejects
Browse files Browse the repository at this point in the history
BUGFIX & BUILD
  • Loading branch information
ddgll authored Oct 3, 2017
2 parents 933567f + 2f5358f commit 058028e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ IndexedDB wrapper for Vuejs based on Dexie
render: h => h(App)
})
```

# 0.1.10 BUGFIX
RETURN Promise.reject()

# 0.1.4 Enhancement
BUGFIX on listSelect vuex action
BUGFIX on toggleSelect vuex action
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-idb",
"version": "0.1.9",
"version": "0.1.10",
"description": "IndexedDB wrapper for Vuejs based on Dexie",
"main": "dist/index.js",
"author": "David Grill <grilldotcom@gmail.com>",
Expand Down
6 changes: 3 additions & 3 deletions src/modules/list-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default (name, options, db, api) => {
return res.data
}, err => {
commit(types[`${NAME}_ADD_FAIL`], entity)
return err
return Promise.reject(err)
})
} else {
return Promise.resolve()
Expand All @@ -93,7 +93,7 @@ export default (name, options, db, api) => {
return res.data
}, err => {
commit(types[`${NAME}_UPDATE_FAIL`], res.data)
return err
return Promise.reject(err)
})
} else {
return Promise.resolve()
Expand All @@ -108,7 +108,7 @@ export default (name, options, db, api) => {
}, err => {
commit(types[`${NAME}_ADD`], payload)
commit(types[`${NAME}_SET_LOADING`], false)
return err
return Promise.reject(err)
})
} else {
return Promise.resolve()
Expand Down

0 comments on commit 058028e

Please sign in to comment.