Skip waiting on email to send when calling worker from contact form #3

Merged
vato007 merged 1 commits from skip-email-wait into main 2025-02-13 22:33:02 +10:30
Showing only changes of commit a8b511dabc - Show all commits

View File

@@ -48,7 +48,7 @@ ${message}`,
"contact@michaelpivato.dev",
msg.asRaw()
);
await this.env.SEB.send(cfMessage);
this.ctx.waitUntil(this.env.SEB.send(cfMessage));
} catch (e) {
throw e;
}