diff options
author | mat <github@matdoes.dev> | 2022-12-15 20:19:49 -0600 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-12-15 20:19:49 -0600 |
commit | 99197f33016e18de858d79cb13cc9ec3fb330082 (patch) | |
tree | 6bf486da0d5d12c77839e84f7e2483884cfefc92 | |
parent | ec0eeae074545d41cbe385c4ec459ecdee263c7b (diff) | |
download | skyblock-api-99197f33016e18de858d79cb13cc9ec3fb330082.tar.gz skyblock-api-99197f33016e18de858d79cb13cc9ec3fb330082.tar.bz2 skyblock-api-99197f33016e18de858d79cb13cc9ec3fb330082.zip |
fix bad caches
-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', |