Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Commit

Permalink
fixes a bug that force update db not working
Browse files Browse the repository at this point in the history
  • Loading branch information
travis committed Apr 23, 2020
1 parent 29112ee commit 3d4c2b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3d4c2b7

Please sign in to comment.