Skip to content

Commit 8646228

Browse files
committed
Fix auth.bulkLoad
1 parent 41b425e commit 8646228

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/modules/auth.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,10 @@ export async function bulkLoad(fields = [], usr = null, pwd = null, isAdmin = fa
768768
var deletedData;
769769
var existingData;
770770
var mergedData;
771-
if (!Array.isArray(fetchedBulkLoad[table] || [])) continue;
771+
if (!Array.isArray(fetchedBulkLoad[table] || [])) {
772+
updatedBulkLoad[table] = fetchedBulkLoad[table];
773+
continue;
774+
}
772775
deletedData = fetchedBulkLoad.syncDeleted?.[table] || [];
773776
existingData = (storage.get(isAdmin ? "adminCache" : "cache")[table] || []).filter(item => {
774777
return !deletedData.includes(String(item.id || item.seatCode || item.period || item.key || item.username || 0));

0 commit comments

Comments
 (0)