aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-28 17:54:56 +0000
committermat <github@matdoes.dev>2022-03-28 17:54:56 +0000
commit394b163f7e4ae4ec05e0f507d4464f54cf57ce4b (patch)
treec6169c704cf4596b957b048f98f1b8dd8e83b6e7 /src
parenta2e0af58ffb48e87508529404a30f2de144ba412 (diff)
downloadskyblock-api-394b163f7e4ae4ec05e0f507d4464f54cf57ce4b.tar.gz
skyblock-api-394b163f7e4ae4ec05e0f507d4464f54cf57ce4b.tar.bz2
skyblock-api-394b163f7e4ae4ec05e0f507d4464f54cf57ce4b.zip
fix item list updating too much
Diffstat (limited to 'src')
-rw-r--r--src/hypixel.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts
index c72e397..44a5bd8 100644
--- a/src/hypixel.ts
+++ b/src/hypixel.ts
@@ -343,7 +343,7 @@ export async function fetchItemList() {
cachedItemListData = itemList
// updates every 60 minutes
- nextElectionUpdate = new Date((itemList.lastUpdated + 60 * 60) * 1000)
+ nextItemListUpdate = new Date((itemList.lastUpdated + 60 * 60) * 1000)
return itemList
}