From 3d4c2b7bbb5deaf3d4fb1a8e06e17944ff36213d Mon Sep 17 00:00:00 2001 From: travis Date: Thu, 23 Apr 2020 10:13:01 +0800 Subject: [PATCH] fixes a bug that force update db not working --- core.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)