From 68255d075e2591d75afb579b546df6e91346ec80 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 2 Jul 2025 11:03:25 -0400 Subject: [PATCH] Migrate Zotero.Promise.map() in syncEngine.js --- chrome/content/zotero/xpcom/sync/syncEngine.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/sync/syncEngine.js b/chrome/content/zotero/xpcom/sync/syncEngine.js index 1366f4ad30..99d224fa5f 100644 --- a/chrome/content/zotero/xpcom/sync/syncEngine.js +++ b/chrome/content/zotero/xpcom/sync/syncEngine.js @@ -587,8 +587,7 @@ Zotero.Sync.Data.Engine.prototype._downloadObjects = async function (objectType, var num = 0; // Process batches of object data as they're available, one at a time - await // FIXME: fx140: replace call to Zotero.Promise.map() - Zotero.Promise.map(results, async function ({ keys: batchKeys, json, error }) { + await Array.fromAsync(results, async function ({ keys: batchKeys, json, error }) { this._statusCheck(); Zotero.debug(`Processing batch of downloaded ${objectTypePlural} in ${this.library.name}`);