Skip to content

Commit

Permalink
fix: .withIdPrefix() works after .reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jun 28, 2017
1 parent f33c11e commit 24550de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/reset.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = reset

var disconnect = require('./disconnect')
var startListenToChanges = require('./helpers/start-listen-to-changes')

function reset (state) {
return disconnect(state)
Expand All @@ -11,5 +12,6 @@ function reset (state) {

.then(function () {
state.db = new state.PouchDB(state.dbName)
startListenToChanges(state)
})
}

0 comments on commit 24550de

Please sign in to comment.