diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-12-17 18:45:19 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-12-17 18:45:19 -0800 |
commit | d98f4566bc856e04f2f6a7d9a7bf49e30867551e (patch) | |
tree | 121da470c382bbd5c3ee58ae3879e49735d82c2d /ext/bg/js/database.js | |
parent | 5c94923264475b08c5b6b3bf37829dec146dd7de (diff) |
WIP
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r-- | ext/bg/js/database.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js index 561da7d8..c8820f4e 100644 --- a/ext/bg/js/database.js +++ b/ext/bg/js/database.js @@ -117,15 +117,15 @@ class Database { } const tagMeta = this.tagMetaCache[dictionary] = {}; - const promise = this.db.tagMeta.where('dictionary').equals(dictionary).each(row => { - tagMeta[row.tag] = { - category: row.category, - notes: row.notes, - order: row.order - }; - }); - - promises.push(promise); + promises.push( + this.db.tagMeta.where('dictionary').equals(dictionary).each(row => { + tagMeta[row.tag] = { + category: row.category, + notes: row.notes, + order: row.order + }; + }) + ); } return Promise.all(promises).then(() => this.tagMetaCache); |