aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock/collections.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-19 19:56:16 -0500
committermat <github@matdoes.dev>2022-03-19 19:56:16 -0500
commit4fd4e4fdbd444466fd22827327eb36da1219eb9f (patch)
tree6cbdb9d729037c35180ee614fbcb88755be853e4 /src/cleaners/skyblock/collections.ts
parent53ebb73fa06f6b41793757375dea40bff75bef7e (diff)
downloadskyblock-api-4fd4e4fdbd444466fd22827327eb36da1219eb9f.tar.gz
skyblock-api-4fd4e4fdbd444466fd22827327eb36da1219eb9f.tar.bz2
skyblock-api-4fd4e4fdbd444466fd22827327eb36da1219eb9f.zip
Squashed commit of the following:
commit 8de482698ce3b144a5208084299733a3951d691a Author: mat <github@matdoes.dev> Date: Sat Mar 19 19:39:21 2022 -0500 fix some issues with the typings commit e4d72e4b66c1f013dab495786041e7ce0316b0af Author: mat <github@matdoes.dev> Date: Sat Mar 19 18:04:10 2022 -0500 Fix error when there is no slayer data commit 706d044f6791272f3f4488d03884c33fc545a806 Author: mat <github@matdoes.dev> Date: Sat Mar 19 18:02:04 2022 -0500 Fix wrong interface commit d1cc698f4add94171004ca7039a452d38fa063b8 Merge: b490254 8843ccf Author: mat <github@matdoes.dev> Date: Sat Mar 19 17:54:00 2022 -0500 Merge branch 'main' into breaking commit b490254510b43ca9ef9822c661f3bfeb2e9ec7ef Author: mat <github@matdoes.dev> Date: Sat Mar 5 13:09:26 2022 -0600 change some seconds to milliseconds commit 09fc38f77faa88f7234f2496c7fd797b884cbf24 Author: mat <github@matdoes.dev> Date: Sat Mar 5 13:04:46 2022 -0600 Update README.md commit a470363ea7e7885c5c946aca9b40f73426a0e94c Author: mat <github@matdoes.dev> Date: Sat Mar 5 13:01:42 2022 -0600 Move `/leaderboard/` to `/leaderboards/` commit 012525036db62fbb97a56576f80c231b4127736d Author: mat <github@matdoes.dev> Date: Sat Mar 5 13:00:06 2022 -0600 Rename collection `xp` to `amount` commit dc8ea0588ad5357257767b37737da185e4dbffd0 Author: mat <github@matdoes.dev> Date: Sat Mar 5 12:59:20 2022 -0600 Rename visited_zones to just zones commit 6008feb15d36afd914efe98e90409327d3fc1322 Author: mat <github@matdoes.dev> Date: Sat Mar 5 12:54:15 2022 -0600 Replace all snake_case keys with camelCase
Diffstat (limited to 'src/cleaners/skyblock/collections.ts')
-rw-r--r--src/cleaners/skyblock/collections.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cleaners/skyblock/collections.ts b/src/cleaners/skyblock/collections.ts
index 363a6e0..7be5a9d 100644
--- a/src/cleaners/skyblock/collections.ts
+++ b/src/cleaners/skyblock/collections.ts
@@ -81,7 +81,7 @@ type CollectionCategory = keyof typeof COLLECTIONS
export interface Collection {
name: string
- xp: number
+ amount: number
level: number
category: CollectionCategory
}
@@ -127,7 +127,7 @@ export function cleanCollections(data: any): Collection[] {
if (collectionLevel !== undefined)
playerCollections.push({
name: collectionName,
- xp: collectionXp,
+ amount: collectionXp,
level: collectionLevel,
category: collectionCategory
})