diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-03-01 21:22:19 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-03-01 21:22:19 -0600 |
commit | bbdcf2665d1c76c903de12aa357877ca02df741f (patch) | |
tree | 541936b93f477c64c1738edbdbdc80403508c9f5 /src | |
parent | e243979611f6855997fbc704bbc499781171578e (diff) | |
download | skyblock-api-bbdcf2665d1c76c903de12aa357877ca02df741f.tar.gz skyblock-api-bbdcf2665d1c76c903de12aa357877ca02df741f.tar.bz2 skyblock-api-bbdcf2665d1c76c903de12aa357877ca02df741f.zip |
Update hypixelCached.ts
Diffstat (limited to 'src')
-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 71e9de9..f76c52a 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -90,7 +90,7 @@ export async function uuidFromUser(user: string): Promise<string> { // check if the username is a value const uuidToUsername: {[ key: string ]: string} = usernameCache.mget(usernameCache.keys()) for (const [ uuid, username ] of Object.entries(uuidToUsername)) { - if (username.toLowerCase && user.toLowerCase() === username.toLowerCase()) + if (username && username.toLowerCase && user.toLowerCase() === username.toLowerCase()) return uuid } |