diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2022-05-16 11:16:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 11:16:04 -0500 |
commit | c878b338e8d5ba0b2ec33b55c68226485f270e18 (patch) | |
tree | 0a005b0f76179a838c90d094dd145d247b6899d2 /src | |
parent | a206dee8301e5a8723daab819f175d7ab01f9029 (diff) | |
download | skyblock-api-c878b338e8d5ba0b2ec33b55c68226485f270e18.tar.gz skyblock-api-c878b338e8d5ba0b2ec33b55c68226485f270e18.tar.bz2 skyblock-api-c878b338e8d5ba0b2ec33b55c68226485f270e18.zip |
fix bug
Diffstat (limited to 'src')
-rw-r--r-- | src/hypixel.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts index 060cff4..42fc5af 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) === null) { auctions.push(simpleAuction) // keep only the last 100 items if (auctions.length > 100) |