Skip to content

Commit

Permalink
fix: doc.unset() resets internal rev state
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jan 9, 2017
1 parent e0d409c commit 5866ef1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/unset.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ function unset (state) {

return state.db.remove(state.id, state.rev)

.then(function () {})
.then(function () {
delete state.rev
})

.catch(function () {
delete state.rev
Expand Down

0 comments on commit 5866ef1

Please sign in to comment.