aboutsummaryrefslogtreecommitdiff
path: root/build/hypixelCached.js
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-05-29 16:24:37 -0500
committermat <github@matdoes.dev>2021-05-29 16:24:37 -0500
commit2a7c5f1ac74381e27e8bf00599b88dcb02f4fe28 (patch)
tree54fd238964e8eed958fe2a3887fe50804a8d0030 /build/hypixelCached.js
parent013b0540d4bca7bfd4db915be59a4803aa925bce (diff)
downloadskyblock-api-2a7c5f1ac74381e27e8bf00599b88dcb02f4fe28.tar.gz
skyblock-api-2a7c5f1ac74381e27e8bf00599b88dcb02f4fe28.tar.bz2
skyblock-api-2a7c5f1ac74381e27e8bf00599b88dcb02f4fe28.zip
probably fix a thing
Diffstat (limited to 'build/hypixelCached.js')
-rw-r--r--build/hypixelCached.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/hypixelCached.js b/build/hypixelCached.js
index 453f3d1..23c186d 100644
--- a/build/hypixelCached.js
+++ b/build/hypixelCached.js
@@ -72,7 +72,7 @@ exports.profileNameCache = new node_cache_1.default({
function waitForCacheSet(cache, key, value) {
return new Promise((resolve, reject) => {
const listener = (setKey, setValue) => {
- if (setKey === key || (value && setValue === value)) {
+ if (((setKey === key) || (value && setValue === value)) && typeof setValue === 'string') {
cache.removeListener('set', listener);
return resolve({ key: setKey, value: setValue });
}