mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Migrate Zotero.Promise.map() in syncEngine.js
This commit is contained in:
parent
70f75fd3b0
commit
68255d075e
1 changed files with 1 additions and 2 deletions
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue