diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-12-23 21:59:19 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-12-23 21:59:19 -0800 |
commit | b81e11f633ab9a0f41b5ab28b032b8493f25150a (patch) | |
tree | 9eb51ddb400dfeb747555e8bae8e23e7022efe36 /ext/bg/js/database.js | |
parent | 22128a948ae052592a17e9cee2a2d24cd0ebad31 (diff) |
revision support
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r-- | ext/bg/js/database.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js index 7ad7d410..a21708f5 100644 --- a/ext/bg/js/database.js +++ b/ext/bg/js/database.js @@ -224,14 +224,14 @@ class Database { } let summary = null; - const indexLoaded = (title, version, tagMeta, hasTerms, hasKanji) => { - summary = {title, hasTerms, hasKanji, version}; + const indexLoaded = (title, version, revision, tagMeta, hasTerms, hasKanji) => { + summary = {title, version, revision, hasTerms, hasKanji}; return this.db.dictionaries.where('title').equals(title).count().then(count => { if (count > 0) { return Promise.reject(`dictionary "${title}" is already imported`); } - return this.db.dictionaries.add({title, version, hasTerms, hasKanji}).then(() => { + return this.db.dictionaries.add({title, version, revision, hasTerms, hasKanji}).then(() => { const rows = []; for (const tag in tagMeta || {}) { const meta = tagMeta[tag]; |