diff options
author | mat <github@matdoes.dev> | 2022-07-01 19:35:36 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-07-01 19:35:36 -0500 |
commit | f9a9fa77d6da390ad702e2657ac75485d8678471 (patch) | |
tree | d18dcb6882ba809a29993cd60f21dd64cc927607 /src | |
parent | 1a1a1b7f65d13f9050adb9fd182409d9c8dad948 (diff) | |
download | skyblock-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.ts | 2 |
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] } |