From fd4f9a6da6a843a17d3969ea5c5145f9bb94f4d8 Mon Sep 17 00:00:00 2001 From: Edu Date: Fri, 10 Oct 2025 16:06:36 +0200 Subject: [PATCH] moving the undefined return outside readwrite action --- lib/storage/providers/IDBKeyValProvider/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/storage/providers/IDBKeyValProvider/index.ts b/lib/storage/providers/IDBKeyValProvider/index.ts index 929c2e65c..fc8efa51d 100644 --- a/lib/storage/providers/IDBKeyValProvider/index.ts +++ b/lib/storage/providers/IDBKeyValProvider/index.ts @@ -62,9 +62,9 @@ const provider: StorageProvider = { return promisifyRequest(store.put(newValue, key)); }); - return Promise.all(upsertMany).then(() => undefined); + return Promise.all(upsertMany); }); - }), + }).then(() => undefined), mergeItem(key, change) { // Since Onyx already merged the existing value with the changes, we can just set the value directly. return provider.multiMerge([[key, change]]);