mirror of
https://github.com/zotero/zotero.git
synced 2026-09-29 01:41:24 +00:00
Migrate Zotero.Promise.each() in syncLocal.js
This commit is contained in:
parent
d734d78812
commit
1f87ba2a24
1 changed files with 2 additions and 5 deletions
|
|
@ -263,11 +263,8 @@ Zotero.Sync.Data.Local = {
|
|||
|
||||
resetUnsyncedLibraryData: async function (libraryID) {
|
||||
let settings = await Zotero.SyncedSettings.getUnsynced(libraryID);
|
||||
if (Object.keys(settings).length) {
|
||||
await // FIXME: fx140: replace call to Zotero.Promise.each()
|
||||
Zotero.Promise.each(Object.keys(settings), function (key) {
|
||||
return Zotero.SyncedSettings.clear(libraryID, key, { skipDeleteLog: true });
|
||||
});
|
||||
for (let key of Object.keys(settings)) {
|
||||
await Zotero.SyncedSettings.clear(libraryID, key, { skipDeleteLog: true });
|
||||
}
|
||||
|
||||
for (let objectType of Zotero.DataObjectUtilities.getTypesForLibrary(libraryID)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue