mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-08-05 09:04:16 +00:00
feat(websub): wire real-time push notifications on email ingest
Pass ExecutionContext through the email processing chain so notifySubscribers is called via ctx.waitUntil after a new email is stored. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
6d221a07dd
commit
d0764ddd8e
@@ -14,7 +14,7 @@ export async function handle(c: Context): Promise<Response> {
|
||||
contentType: payload.html ? "HTML" : "Text",
|
||||
});
|
||||
|
||||
return handleForwardEmail(payload, env);
|
||||
return handleForwardEmail(payload, env, c.executionCtx);
|
||||
} catch (error) {
|
||||
console.error("Error processing email:", error);
|
||||
return new Response("Error processing email", { status: 500 });
|
||||
|
||||
Reference in New Issue
Block a user