better log

This commit is contained in:
Miodec 2023-05-17 12:05:48 +02:00
parent ecf5ea9d65
commit 16b2b11caf

View file

@ -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");