log email errors so i can figure out wtf is going on

This commit is contained in:
split / May 2023-08-04 02:00:33 +00:00
parent 09feefffcd
commit 99a0800128

View file

@ -287,6 +287,7 @@ authRoutes.post("/request_email_change", requiresAccount, (req,res) => {
let e = verificationCodes.get(acc?.id||"")?.expiry let e = verificationCodes.get(acc?.id||"")?.expiry
if (e) clearTimeout(e) if (e) clearTimeout(e)
verificationCodes.delete(acc?.id||"") verificationCodes.delete(acc?.id||"")
console.error(err?.toString())
ServeError(res, 500, err?.toString()) ServeError(res, 500, err?.toString())
}) })
}) })