mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-20 17:11:17 +00:00
fix(waitlist): add delay before sending email to avoid rate limit
Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -81,6 +81,8 @@ export async function action({ request }: Route.ActionArgs) {
|
|||||||
return { error: FormError.Resend, message: res.error.message }
|
return { error: FormError.Resend, message: res.error.message }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await new Promise((resolve) => setTimeout(resolve, 1000))
|
||||||
|
|
||||||
const emailRes = await resend.emails.send({
|
const emailRes = await resend.emails.send({
|
||||||
from: "Aelis <no-reply@ael.is>",
|
from: "Aelis <no-reply@ael.is>",
|
||||||
to: email,
|
to: email,
|
||||||
|
|||||||
Reference in New Issue
Block a user