From 21a3bf8aa5932fd6f80c1b2591903e0ae34d4860 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 21 Apr 2017 02:59:24 -0400 Subject: [PATCH] Fix indexing of synced full-text content --- chrome/content/zotero/xpcom/fulltext.js | 2 +- chrome/content/zotero/xpcom/zotero.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index fb140b6725..2179a5a0b3 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -958,7 +958,7 @@ Zotero.Fulltext = Zotero.FullText = new function(){ return; } var itemID = item.id; - var currentVersion = this.getItemVersion(itemID) + var currentVersion = yield this.getItemVersion(itemID) var processorCacheFile = this.getItemProcessorCacheFile(item); var itemCacheFile = this.getItemCacheFile(item); diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 34bda8fe33..ad35b51680 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1781,7 +1781,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); yield Zotero.DB.executeTransaction(function* () { return Zotero.Tags.purge(); }); - Zotero.Fulltext.purgeUnusedWords(); + yield Zotero.Fulltext.purgeUnusedWords(); yield Zotero.DB.executeTransaction(function* () { return Zotero.Items.purge(); });