mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
better log
This commit is contained in:
parent
ecf5ea9d65
commit
16b2b11caf
1 changed files with 7 additions and 1 deletions
|
@ -109,13 +109,19 @@ export async function sendVerificationEmail(
|
|||
throw new MonkeyError(
|
||||
500,
|
||||
"Auth user not found when the user was found in the database",
|
||||
JSON.stringify({ email: email, userInfoEmail: email, stack: e.stack }),
|
||||
JSON.stringify({
|
||||
decodedTokenEmail: email,
|
||||
userInfoEmail: userInfo.email,
|
||||
stack: e.stack,
|
||||
}),
|
||||
userInfo.uid
|
||||
);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
|
||||
console.log(link);
|
||||
|
||||
await emailQueue.sendVerificationEmail(email, userInfo.name, link);
|
||||
|
||||
return new MonkeyResponse("Email sent");
|
||||
|
|
Loading…
Reference in a new issue