Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 2c0d9bf

Browse files
committed
Fix apikey auth.
1 parent 61f6541 commit 2c0d9bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/user/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function getUserId(client) {
4242
const username = await getUsername(client)
4343

4444
if (username != null) {
45-
const hexString = hexlify(Buffer.from(await this.getUsername(), 'utf8'))
45+
const hexString = hexlify(Buffer.from(username, 'utf8'))
4646
return sha256(hexString)
4747
}
4848

0 commit comments

Comments
 (0)