aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-07-01 19:35:36 -0500
committermat <github@matdoes.dev>2022-07-01 19:35:36 -0500
commitf9a9fa77d6da390ad702e2657ac75485d8678471 (patch)
treed18dcb6882ba809a29993cd60f21dd64cc927607 /src
parent1a1a1b7f65d13f9050adb9fd182409d9c8dad948 (diff)
downloadskyblock-api-f9a9fa77d6da390ad702e2657ac75485d8678471.tar.gz
skyblock-api-f9a9fa77d6da390ad702e2657ac75485d8678471.tar.bz2
skyblock-api-f9a9fa77d6da390ad702e2657ac75485d8678471.zip
Fix coins for when there's no buyer
Diffstat (limited to 'src')
-rw-r--r--src/cleaners/skyblock/auctions.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/auctions.ts b/src/cleaners/skyblock/auctions.ts
index d47e5f2..dc104b0 100644
--- a/src/cleaners/skyblock/auctions.ts
+++ b/src/cleaners/skyblock/auctions.ts
@@ -52,7 +52,7 @@ async function cleanAuction(auction: typedHypixelApi.SkyBlockRequestAuctionRespo
creationTimestamp: auction.start,
buyer,
boughtTimestamp: auction.end,
- coins: auction.highest_bid_amount,
+ coins: auction.highest_bid_amount || auction.starting_bid,
bin: auction.bin ?? false,
item: (await cleanInventory(typeof auction.item_bytes === 'string' ? auction.item_bytes : auction.item_bytes.data))[0]
}