aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-17 23:36:33 -0500
committermat <github@matdoes.dev>2022-05-17 23:36:33 -0500
commit05bc6aeec8056378732814dcd780441a031223b0 (patch)
tree4cc6426db60fcac957491b2755a24b8c305881b2
parentfbeda39dcffb27ff5aaa0697f2c55d2e1dcc7fd2 (diff)
downloadskyblock-api-05bc6aeec8056378732814dcd780441a031223b0.tar.gz
skyblock-api-05bc6aeec8056378732814dcd780441a031223b0.tar.bz2
skyblock-api-05bc6aeec8056378732814dcd780441a031223b0.zip
divide price by count for auction prices
-rw-r--r--src/hypixel.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts
index b579059..82c315d 100644
--- a/src/hypixel.ts
+++ b/src/hypixel.ts
@@ -369,7 +369,7 @@ export async function periodicallyFetchRecentlyEndedAuctions() {
const simpleAuction: SimpleAuctionSchema = {
s: true,
- coins: auction.coins,
+ coins: auction.coins / auction.item.count,
id: auction.id,
ts: Math.floor(auction.timestamp / 1000),
bin: auction.bin,