From f9a9fa77d6da390ad702e2657ac75485d8678471 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 1 Jul 2022 19:35:36 -0500 Subject: Fix coins for when there's no buyer --- src/cleaners/skyblock/auctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cleaners/skyblock') 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] } -- cgit