aboutsummaryrefslogtreecommitdiff
path: root/src/hypixel.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-17 20:59:52 -0500
committermat <github@matdoes.dev>2022-05-17 20:59:52 -0500
commit667b2d08638959d11bc2fbfa6e2b40b0e9834d6d (patch)
tree6868fe7848e2d57e32c3bf0991a69ef6fc3b8c00 /src/hypixel.ts
parentb577c9ace72b39daeff8e5c4278dba1230521625 (diff)
downloadskyblock-api-667b2d08638959d11bc2fbfa6e2b40b0e9834d6d.tar.gz
skyblock-api-667b2d08638959d11bc2fbfa6e2b40b0e9834d6d.tar.bz2
skyblock-api-667b2d08638959d11bc2fbfa6e2b40b0e9834d6d.zip
add oldestDate field
Diffstat (limited to 'src/hypixel.ts')
-rw-r--r--src/hypixel.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts
index a2a8749..a29a7b1 100644
--- a/src/hypixel.ts
+++ b/src/hypixel.ts
@@ -416,7 +416,7 @@ export async function periodicallyFetchRecentlyEndedAuctions() {
bin: auction.bin,
}
// make sure the auction isn't already in there
- if (auctions.find((a) => a.id === simpleAuction.id)) {
+ if (!auctions.find((a) => a.id === simpleAuction.id)) {
auctions.push(simpleAuction)
// keep only the last 100 items
if (auctions.length > 100)