[Eliminate Blocking] User related (#5928)

This commit is contained in:
Louis Lam
2025-06-19 14:29:43 +08:00
committed by GitHub
parent 443d5cf554
commit 4962817795
6 changed files with 8 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ module.exports.apiKeySocketHandler = (socket) => {
checkLogin(socket);
let clearKey = nanoid(40);
let hashedKey = passwordHash.generate(clearKey);
let hashedKey = await passwordHash.generate(clearKey);
key["key"] = hashedKey;
let bean = await APIKey.save(key, socket.userID);