aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-10 12:20:25 -0500
committermat <github@matdoes.dev>2022-04-10 12:20:25 -0500
commit8435e97486dcddf45f0aa11abdab4a3dd047ffc2 (patch)
treeef24054bf2f0e9dfbba65badb6149078b5a06ad1 /src/cleaners/skyblock
parent772e3d415e52d7d020cdddfb061df3f433049f7c (diff)
downloadskyblock-api-8435e97486dcddf45f0aa11abdab4a3dd047ffc2.tar.gz
skyblock-api-8435e97486dcddf45f0aa11abdab4a3dd047ffc2.tar.bz2
skyblock-api-8435e97486dcddf45f0aa11abdab4a3dd047ffc2.zip
fix y200 century cake & throw error earlier when hypixel api returns null
Diffstat (limited to 'src/cleaners/skyblock')
-rw-r--r--src/cleaners/skyblock/claimed.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/claimed.ts b/src/cleaners/skyblock/claimed.ts
index f30dedf..0873af9 100644
--- a/src/cleaners/skyblock/claimed.ts
+++ b/src/cleaners/skyblock/claimed.ts
@@ -18,7 +18,7 @@ export function cleanPlayerSkyblockClaimed(data: typedHypixelApi.PlayerDataRespo
const centuryCakes = Object.keys(data).filter((key) => key.startsWith('claimed_century_cake'))
for (const centuryCake of centuryCakes) {
- const centuryCakeYear = centuryCake === 'claimed_century_cake' ? '100' : centuryCakes.slice('claimed_century_cake'.length)
+ const centuryCakeYear = centuryCake === 'claimed_century_cake' ? '100' : centuryCake.slice('claimed_century_cake'.length)
claimedItems.push({
name: `year_${centuryCakeYear}_century_cake`,
timestamp: data[centuryCake]