aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/database.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-12-17 18:45:19 -0800
committerAlex Yatskov <alex@foosoft.net>2016-12-17 18:45:19 -0800
commitd98f4566bc856e04f2f6a7d9a7bf49e30867551e (patch)
tree121da470c382bbd5c3ee58ae3879e49735d82c2d /ext/bg/js/database.js
parent5c94923264475b08c5b6b3bf37829dec146dd7de (diff)
WIP
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r--ext/bg/js/database.js18
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);