From 99197f33016e18de858d79cb13cc9ec3fb330082 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 15 Dec 2022 20:19:49 -0600 Subject: fix bad caches --- src/hypixel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hypixel.ts b/src/hypixel.ts index 4b26d53..95e4432 100644 --- a/src/hypixel.ts +++ b/src/hypixel.ts @@ -306,7 +306,7 @@ export async function fetchMemberProfilesUncached(playerUuid: string): Promise { return await withCache( 'election', - (r) => new Date((r.lastUpdated + 60 * 60) * 1000), + (r) => new Date(r.lastUpdated + 60 * 60 * 1000), async () => { return await sendCleanApiRequest( 'resources/skyblock/election', @@ -320,7 +320,7 @@ export async function fetchElection(): Promise { export async function fetchItemList() { return await withCache( 'itemList', - (r) => new Date((r.lastUpdated + 60 * 60) * 1000), + (r) => new Date(r.lastUpdated + 60 * 60 * 1000), async () => { return await sendCleanApiRequest( 'resources/skyblock/items', -- cgit