aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hypixel.ts6
1 files changed, 3 insertions, 3 deletions
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<string, string> | null = null
+let cachedAuctionItemListData: Record<string, string> | 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() {