aboutsummaryrefslogtreecommitdiff
path: root/src/hypixel.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-07-01 18:56:46 -0500
committermat <github@matdoes.dev>2022-07-01 18:56:46 -0500
commit11f0b9762dd85adfbe746c4c7406410ea0fdd8a7 (patch)
tree04f0992f722e7fdee04b794d12a0fae31d7c3333 /src/hypixel.ts
parenta241602974da4effa14dab0b7876d533f1225e93 (diff)
downloadskyblock-api-11f0b9762dd85adfbe746c4c7406410ea0fdd8a7.tar.gz
skyblock-api-11f0b9762dd85adfbe746c4c7406410ea0fdd8a7.tar.bz2
skyblock-api-11f0b9762dd85adfbe746c4c7406410ea0fdd8a7.zip
return Auctions instead of Auction[]
Diffstat (limited to 'src/hypixel.ts')
-rw-r--r--src/hypixel.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts
index bb07968..3569466 100644
--- a/src/hypixel.ts
+++ b/src/hypixel.ts
@@ -33,7 +33,7 @@ import * as cached from './hypixelCached.js'
import { debug } from './index.js'
import { WithId } from 'mongodb'
import { cleanEndedAuctions } from './cleaners/skyblock/endedAuctions.js'
-import { Auction, cleanAuctions } from './cleaners/skyblock/auctions.js'
+import { Auctions, cleanAuctions } from './cleaners/skyblock/auctions.js'
import { withCache } from './util.js'
import { Item } from './cleaners/skyblock/inventory.js'
@@ -486,7 +486,7 @@ async function fetchAuctionItemsUncached() {
return idsToData
}
-export async function fetchPlayerAuctions(user: string, page: number): Promise<Auction[] | null> {
+export async function fetchPlayerAuctions(user: string, page: number): Promise<Auctions | null> {
const playerUuid = await cached.uuidFromUser(user)
if (!playerUuid) return null
@@ -495,5 +495,5 @@ export async function fetchPlayerAuctions(user: string, page: number): Promise<A
{ player: playerUuid },
{ page }
)
- return playerAuctions.auctions
+ return playerAuctions
}