adds OTP emails to SentEmails table

This commit is contained in:
2026-01-24 10:09:47 +00:00
parent 9c7ed56823
commit 3e14e8acbe
2 changed files with 5 additions and 0 deletions

View File

@@ -50,6 +50,10 @@ to do anything.`,
`Sent OTP (${otpPretty}) to ${email}. Message ID: ${info.messageId}`,
);
await db
.insert(SentEmails)
.values({ messageId: info.messageId, sentAt: Date.now() });
await db.insert(Otp).values({
userId: email,
value: otp,