diff options
author | mat <github@matdoes.dev> | 2022-06-01 23:03:36 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-06-01 23:03:36 -0500 |
commit | 2049e002aa83778fff1b94fa624f95f702463031 (patch) | |
tree | e0a05cb641b61de45e142834532f747c1d8024a6 | |
parent | 73829d9e24e3d98104393624da7dade3a7eb03a1 (diff) | |
download | skyblock-api-2049e002aa83778fff1b94fa624f95f702463031.tar.gz skyblock-api-2049e002aa83778fff1b94fa624f95f702463031.tar.bz2 skyblock-api-2049e002aa83778fff1b94fa624f95f702463031.zip |
move a return to test a theory
-rw-r--r-- | src/cleaners/achievements.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cleaners/achievements.ts b/src/cleaners/achievements.ts index 8ab3445..da0174e 100644 --- a/src/cleaners/achievements.ts +++ b/src/cleaners/achievements.ts @@ -27,15 +27,12 @@ export interface Achievements { } export async function cleanPlayerAchievements(data: typedHypixelApi.PlayerDataResponse['player']): Promise<Achievements> { - // temporarily disabled because this might be causing high memory usage? - return { tiered: [], challenge: [] } - - if (!data.achievements) { return { tiered: [], challenge: [] } } const gameAchievements: typedHypixelApi.AchievementsResponse['achievements'] = await fetchAchievements() + return { tiered: [], challenge: [] } for (const [gameId, achievementsData] of Object.entries(gameAchievements)) { if (gameId !== 'skyblock') continue |