From d140b2edd141aa3ed60bd10f80d43836d39ae20d Mon Sep 17 00:00:00 2001 From: ztimson Date: Sun, 29 Jun 2025 22:41:39 -0400 Subject: [PATCH] Revert: Restoring cache from DB gets complete status --- package.json | 2 +- src/cache.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b18944d..db2e8fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/utils", - "version": "0.25.20", + "version": "0.25.21", "description": "Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/cache.ts b/src/cache.ts index 5d78821..8da3471 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -34,7 +34,7 @@ export class Cache { if(options.storageKey && !options.storage && typeof(Storage) !== 'undefined') options.storage = localStorage; if(options.storage) { if(options.storage instanceof Table) { - (async () => this.addAll(await options.storage?.getAll()))() + (async () => this.addAll(await options.storage?.getAll(), false))() } else if(options.storageKey) { const stored = options.storage?.getItem(options.storageKey); if(stored != null) try { Object.assign(this.store, JSON.parse(stored)); } catch { }