From 91a51e57b7303d24434d2511f414d46812cb6d35 Mon Sep 17 00:00:00 2001 From: pilar6195 Date: Mon, 1 Jul 2024 17:07:25 -0500 Subject: [PATCH] fix: cache wasn't properly cleaning expired keys --- src/utils/Cache.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/Cache.ts b/src/utils/Cache.ts index 8c57dfb..b183b03 100644 --- a/src/utils/Cache.ts +++ b/src/utils/Cache.ts @@ -60,9 +60,9 @@ const Cache = { }, async _cleanStore(store: LocalForage) { - return store.iterate(async (value: any, key: string) => { + return store.iterate((value: any, key: string) => { if (Date.now() > value.ttl) { - return store.removeItem(key); + void store.removeItem(key); } }); },