diff options
author | mat <github@matdoes.dev> | 2022-06-04 13:12:37 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-06-04 13:12:37 -0500 |
commit | 1b6b520d21e86c2bdeda487b9be8febc924026d7 (patch) | |
tree | 263852b86495e7184b95910f56afe677aa008f21 | |
parent | 379954771b1a8c95dbe0a51bb4b2c52e8738fc73 (diff) | |
download | skyblock-api-1b6b520d21e86c2bdeda487b9be8febc924026d7.tar.gz skyblock-api-1b6b520d21e86c2bdeda487b9be8febc924026d7.tar.bz2 skyblock-api-1b6b520d21e86c2bdeda487b9be8febc924026d7.zip |
Re-enable achievements and lower basicPlayerCache max
-rw-r--r-- | .github/workflows/test.yml | 2 | ||||
-rw-r--r-- | src/cleaners/achievements.ts | 2 | ||||
-rw-r--r-- | src/hypixelCached.ts | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 22986e1..8398f51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -on: [ push, pull_request ] +on: [push, pull_request] jobs: build-and-test: diff --git a/src/cleaners/achievements.ts b/src/cleaners/achievements.ts index 367e14a..9d25535 100644 --- a/src/cleaners/achievements.ts +++ b/src/cleaners/achievements.ts @@ -77,8 +77,6 @@ export async function cleanPlayerAchievements(data: typedHypixelApi.PlayerDataRe lockedChallengeAchievements.push(achievement) } - // temporarily disabled - return { tiered: [], challenge: [] } return { tiered: tieredAchievements, challenge: [ diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index a233380..6f91e22 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -40,7 +40,7 @@ export const playerCache = new NodeCache({ // cache "basic players" (players without profiles) for 20 minutes export const basicPlayerCache: LRUCache<string, CleanPlayer> = new LRUCache({ - max: 10000, + max: 1000, ttl: 60 * 20 * 1000, }) |