aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-05-16 11:21:13 -0500
committerGitHub <noreply@github.com>2022-05-16 11:21:13 -0500
commitddc8c820a3234bc60d61da1db8da502806dca592 (patch)
treef149199c47748aa7ea6d97b12f76dc29218722e6
parentc878b338e8d5ba0b2ec33b55c68226485f270e18 (diff)
downloadskyblock-api-ddc8c820a3234bc60d61da1db8da502806dca592.tar.gz
skyblock-api-ddc8c820a3234bc60d61da1db8da502806dca592.tar.bz2
skyblock-api-ddc8c820a3234bc60d61da1db8da502806dca592.zip
fix bug: the sequel
-rw-r--r--src/hypixel.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts
index 42fc5af..fbb01f0 100644
--- a/src/hypixel.ts
+++ b/src/hypixel.ts
@@ -409,7 +409,7 @@ export async function periodicallyFetchRecentlyEndedAuctions() {
bin: auction.bin,
}
// make sure the auction isn't already in there
- if (auctions.findIndex((a) => a.id === simpleAuction.id) === null) {
+ if (auctions.findIndex((a) => a.id === simpleAuction.id) === -1) {
auctions.push(simpleAuction)
// keep only the last 100 items
if (auctions.length > 100)