Include type of event in event email templates

This commit is contained in:
2025-03-24 14:18:27 -04:00
parent 6730b876bf
commit e7015e8549
2 changed files with 9 additions and 6 deletions

View File

@ -98,7 +98,7 @@ export async function onRequestPost(context: RequestContext) {
if (type !== "gamenight")
await context.env.DATA.put(
`eventemail_${id}`,
context.data.current_user.email,
JSON.stringify({ email: context.data.current_user.email, type }),
{ expirationTtl: 2678400 },
);