diff options
author | mat <github@matdoes.dev> | 2022-05-17 20:24:20 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-05-17 20:24:20 -0500 |
commit | 887d7c951581602478233f0213d20095b43b904f (patch) | |
tree | 7d32787e1ac5484be680c616c66d9158c70e58f3 | |
parent | 18291657ff34b5a28479265b6aa56c6d0e052c04 (diff) | |
download | skyblock-api-887d7c951581602478233f0213d20095b43b904f.tar.gz skyblock-api-887d7c951581602478233f0213d20095b43b904f.tar.bz2 skyblock-api-887d7c951581602478233f0213d20095b43b904f.zip |
temporarily disable auction fetching
-rw-r--r-- | src/hypixel.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts index c909a17..9d9c078 100644 --- a/src/hypixel.ts +++ b/src/hypixel.ts @@ -374,6 +374,8 @@ export async function fetchAuctionUncached(uuid: string) { // this function is called from database.ts so it starts when we connect to the database // it should only ever be called once! export async function periodicallyFetchRecentlyEndedAuctions() { + return + let previousAuctionIds = new Set() while (true) { @@ -482,7 +484,7 @@ export async function fetchAuctionItems() { cachedAuctionItemListData = Object.fromEntries(itemList) // updates every 60 minutes - nextAuctionItemListUpdate = new Date(Date.now() + 10 * 60 * 1000); + nextAuctionItemListUpdate = new Date(Date.now() + 10 * 60 * 1000) return cachedAuctionItemListData } |