diff options
author | mat <github@matdoes.dev> | 2021-05-31 19:22:45 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-05-31 19:23:28 -0500 |
commit | 7278b0563cb7ac7d76b925af4668946ee5784c6e (patch) | |
tree | 502415020f4d77b5c1795e59bb82d2088e94749c | |
parent | eff9086ba4e19fc97965cc84fdf1564375bb322e (diff) | |
download | skyblock-api-7278b0563cb7ac7d76b925af4668946ee5784c6e.tar.gz skyblock-api-7278b0563cb7ac7d76b925af4668946ee5784c6e.tar.bz2 skyblock-api-7278b0563cb7ac7d76b925af4668946ee5784c6e.zip |
fix basicPlayerCache not being in ms
-rw-r--r-- | build/hypixelCached.js | 2 | ||||
-rw-r--r-- | src/hypixelCached.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js index 9b753e7..cb078f2 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -54,7 +54,7 @@ exports.playerCache = new node_cache_1.default({ // cache "basic players" (players without profiles) for 30 minutes exports.basicPlayerCache = new lru_cache_1.default({ max: 10000, - maxAge: 60 * 30, + maxAge: 60 * 30 * 1000, }); exports.profileCache = new node_cache_1.default({ stdTTL: 30, diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 4ffd1a7..338dc98 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -38,7 +38,7 @@ export const playerCache = new NodeCache({ // cache "basic players" (players without profiles) for 30 minutes export const basicPlayerCache: LRUCache<string, CleanPlayer> = new LRUCache({ max: 10000, - maxAge: 60 * 30, + maxAge: 60 * 30 * 1000, }) export const profileCache = new NodeCache({ |