diff options
author | mat <github@matdoes.dev> | 2022-05-17 17:43:30 +0000 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-05-17 17:43:30 +0000 |
commit | 5101e436bd2acfb6efdffe5c8c723511ab735153 (patch) | |
tree | 014d8a95693017e1e89cb254a45896422a650bbb /src/cleaners/skyblock | |
parent | ed72217fd73eca1de929f915056e13be9d4085f9 (diff) | |
download | skyblock-api-5101e436bd2acfb6efdffe5c8c723511ab735153.tar.gz skyblock-api-5101e436bd2acfb6efdffe5c8c723511ab735153.tar.bz2 skyblock-api-5101e436bd2acfb6efdffe5c8c723511ab735153.zip |
improve auctions api
Diffstat (limited to 'src/cleaners/skyblock')
-rw-r--r-- | src/cleaners/skyblock/endedAuctions.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cleaners/skyblock/endedAuctions.ts b/src/cleaners/skyblock/endedAuctions.ts index 0dfa0ab..0c61c6c 100644 --- a/src/cleaners/skyblock/endedAuctions.ts +++ b/src/cleaners/skyblock/endedAuctions.ts @@ -3,7 +3,7 @@ import { cleanInventory, headIdFromBase64, Item } from './inventory.js' import { cleanItemId } from './itemId.js' -interface Auction { +interface EndedAuction { id: string sellerUuid: string sellerProfileUuid: string @@ -16,11 +16,11 @@ interface Auction { export interface EndedAuctions { lastUpdated: number - auctions: Auction[] + auctions: EndedAuction[] } export async function cleanEndedAuctions(data: typedHypixelApi.SkyBlockRecentlyEndedAuctionsResponse): Promise<EndedAuctions> { - const auctions: Auction[] = [] + const auctions: EndedAuction[] = [] for (const auction of data.auctions) { auctions.push({ id: auction.auction_id, |