adds OTP emails to SentEmails table
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user