diff options
author | mat <github@matdoes.dev> | 2021-12-31 02:44:04 -0600 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-12-31 02:44:04 -0600 |
commit | d9472d922d48dbb7bc15421efa9e62dfed0cee93 (patch) | |
tree | 8834fbd6995a9e2dd526e283e6d8f4d276d5d8a2 /src/hypixelCached.ts | |
parent | 68cdc65a893c7149b637a46efe5bbcb319cb42cd (diff) | |
download | skyblock-api-d9472d922d48dbb7bc15421efa9e62dfed0cee93.tar.gz skyblock-api-d9472d922d48dbb7bc15421efa9e62dfed0cee93.tar.bz2 skyblock-api-d9472d922d48dbb7bc15421efa9e62dfed0cee93.zip |
Update hypixelCached.ts
Diffstat (limited to 'src/hypixelCached.ts')
-rw-r--r-- | src/hypixelCached.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 26e3dc5..d5b6628 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -71,7 +71,7 @@ function waitForCacheSet(cache: NodeCache, key?: string, value?: string): Promis const listener = (setKey, setValue) => { // we check that the setValue isn't a promise because it's often // set as a promise for this exact function - if (((setKey === key) || (value && setValue === value)) && (!setValue.then)) { + if (((setKey === key) || (value && setValue === value)) && (!setValue?.then)) { cache.removeListener('set', listener) return resolve({ key: setKey, value: setValue }) } |