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
This commit is contained in:
SSCC 2025-07-20 13:07:29 +08:00 committed by Dan Stillman
parent 47f2821a3d
commit 6dbefee007

View file

@ -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