diff options
-rw-r--r-- | src/hypixel.ts | 4 |
1 files 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<C export async function fetchElection(): Promise<ElectionData> { 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<ElectionData> { 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', |