diff --git a/core.js b/core.js index b5ae05f..f25df56 100644 --- a/core.js +++ b/core.js @@ -416,9 +416,7 @@ let core = { }, update(keys, opt, done) { - api.getDB(db => { - if (opt.db) return - + api.getDB(opt.db ? null : db => { let aa = [] if (!keys) keys = _.keys(ads.data)