From 2fbdda14faa3d7382837ef075d7fdd8a8d3a7f6a Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sun, 28 Feb 2021 01:39:21 -0600 Subject: fix double fetching --- src/hypixelCached.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { 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) } -- cgit