diff options
author | mat <github@matdoes.dev> | 2022-05-17 23:53:10 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-05-17 23:53:10 -0500 |
commit | 21be335df3ad9f9f9008cd7138866234c922ca7d (patch) | |
tree | c079ef57683e1bdd7cb643445895fe3c86ec0ba7 /src/hypixel.ts | |
parent | 05bc6aeec8056378732814dcd780441a031223b0 (diff) | |
download | skyblock-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.ts | 2 |
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, |