Add email notifications

This commit is contained in:
2024-02-28 02:34:17 -05:00
parent 28a60dbe3b
commit eebec09719
2 changed files with 38 additions and 5 deletions

View File

@ -93,6 +93,12 @@ export async function onRequestPost(context: RequestContext) {
method: "POST",
});
await context.env.DATA.put(
`eventemail_${id}`,
context.data.current_user.email,
{ expirationTtl: 2678400 },
);
return new Response(null, {
status: 204,
});