From e06358b5b930c90e69dc4a6bddaa2b7f1be640b4 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 17 May 2022 18:36:15 +0000 Subject: fix bug: the play --- src/hypixel.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/hypixel.ts b/src/hypixel.ts index ce6f8b7..2fdc94d 100644 --- a/src/hypixel.ts +++ b/src/hypixel.ts @@ -455,7 +455,7 @@ export async function periodicallyFetchRecentlyEndedAuctions() { } let isFetchingAuctionItemList = false -let cachedAuctionItemListData: Map | null = null +let cachedAuctionItemListData: Record | null = null let nextAuctionItemListUpdate: Date = new Date(0) export async function fetchAuctionItems() { @@ -480,10 +480,10 @@ export async function fetchAuctionItems() { isFetchingAuctionItemList = false if (!itemList) return undefined - cachedAuctionItemListData = itemList + cachedAuctionItemListData = Object.fromEntries(itemList) // updates every 60 minutes nextAuctionItemListUpdate = new Date(Date.now() + 10 * 60 * 1000); - return Object.fromEntries(itemList) + return itemList } async function fetchAuctionItemsUncached() { -- cgit