From 3e14e8acbecea6ba5d9b98d5bb41c4cad8d9b865 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sat, 24 Jan 2026 10:09:47 +0000 Subject: adds OTP emails to SentEmails table --- website/src/actions/otp/send-otp.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'website/src/actions/otp') diff --git a/website/src/actions/otp/send-otp.ts b/website/src/actions/otp/send-otp.ts index 2781061..ee7fe35 100644 --- a/website/src/actions/otp/send-otp.ts +++ b/website/src/actions/otp/send-otp.ts @@ -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, -- cgit v1.2.3