aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-02-28 01:39:21 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-02-28 01:39:21 -0600
commit2fbdda14faa3d7382837ef075d7fdd8a8d3a7f6a (patch)
tree76cc239c39255059b0699326e1eef507fd9a3d59 /src
parente0b595a000f9111e3779d56b2c70b864d6ad3046 (diff)
downloadskyblock-api-2fbdda14faa3d7382837ef075d7fdd8a8d3a7f6a.tar.gz
skyblock-api-2fbdda14faa3d7382837ef075d7fdd8a8d3a7f6a.tar.bz2
skyblock-api-2fbdda14faa3d7382837ef075d7fdd8a8d3a7f6a.zip
fix double fetching
Diffstat (limited to 'src')
-rw-r--r--src/hypixelCached.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts
index 83360a9..8852a74 100644
--- a/src/hypixelCached.ts
+++ b/src/hypixelCached.ts
@@ -69,7 +69,7 @@ export async function uuidFromUser(user: string): Promise<string> {
const username: any = usernameCache.get(undashUuid(user))
// if it has .then, then that means its a waitForSet promise. This is done to prevent requests made while it is already requesting
if (username.then) {
- return (await username()).key
+ return (await username).key
} else
return undashUuid(user)
}