aboutsummaryrefslogtreecommitdiff
path: root/src/hypixel.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-17 23:53:10 -0500
committermat <github@matdoes.dev>2022-05-17 23:53:10 -0500
commit21be335df3ad9f9f9008cd7138866234c922ca7d (patch)
treec079ef57683e1bdd7cb643445895fe3c86ec0ba7 /src/hypixel.ts
parent05bc6aeec8056378732814dcd780441a031223b0 (diff)
downloadskyblock-api-21be335df3ad9f9f9008cd7138866234c922ca7d.tar.gz
skyblock-api-21be335df3ad9f9f9008cd7138866234c922ca7d.tar.bz2
skyblock-api-21be335df3ad9f9f9008cd7138866234c922ca7d.zip
round decimal auction coin values
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 82c315d..0407514 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 / auction.item.count,
+ coins: Math.round(auction.coins / auction.item.count),
id: auction.id,
ts: Math.floor(auction.timestamp / 1000),
bin: auction.bin,