Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't set email address key for gamenights
  • Loading branch information
regalijan committed Mar 14, 2024
1 parent 508f5c6 commit 9d3b210
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions functions/api/events-team/events/new.ts
Expand Up @@ -95,11 +95,12 @@ export async function onRequestPost(context: RequestContext) {
method: "POST",
});

await context.env.DATA.put(
`eventemail_${id}`,
context.data.current_user.email,
{ expirationTtl: 2678400 },
);
if (type !== "gamenight")
await context.env.DATA.put(
`eventemail_${id}`,
context.data.current_user.email,
{ expirationTtl: 2678400 },
);

return new Response(null, {
status: 204,
Expand Down

0 comments on commit 9d3b210

Please sign in to comment.