From 6dbefee007a71c4f942a3cb85989a5274198f0d5 Mon Sep 17 00:00:00 2001 From: SSCC <2094558239@qq.com> Date: Sun, 20 Jul 2025 13:07:29 +0800 Subject: [PATCH] fix the missing "yield" in line 158 of storageEngine.js (#5394) Fix the issue where Zotero.Sync.Runner.sync({background: true}) cannot obtain the itemIDs --- chrome/content/zotero/xpcom/storage/storageEngine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/storage/storageEngine.js b/chrome/content/zotero/xpcom/storage/storageEngine.js index 6142943e43..4d638ced96 100644 --- a/chrome/content/zotero/xpcom/storage/storageEngine.js +++ b/chrome/content/zotero/xpcom/storage/storageEngine.js @@ -155,7 +155,7 @@ Zotero.Sync.Storage.Engine.prototype.start = Zotero.Promise.coroutine(function* && this.local.lastFullFileCheck[libraryID] && (this.local.lastFullFileCheck[libraryID] + (this.maxCheckAge * 1000)) > new Date().getTime()) { - let itemIDs = this.local.getFilesToCheck(libraryID, this.maxCheckAge); + let itemIDs = yield this.local.getFilesToCheck(libraryID, this.maxCheckAge); yield this.local.checkForUpdatedFiles(libraryID, itemIDs); } // Otherwise check all files in library