Don't set email address key for gamenights
This commit is contained in:
parent
508f5c6b98
commit
9d3b210bff
@ -95,11 +95,12 @@ export async function onRequestPost(context: RequestContext) {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
});
|
});
|
||||||
|
|
||||||
await context.env.DATA.put(
|
if (type !== "gamenight")
|
||||||
`eventemail_${id}`,
|
await context.env.DATA.put(
|
||||||
context.data.current_user.email,
|
`eventemail_${id}`,
|
||||||
{ expirationTtl: 2678400 },
|
context.data.current_user.email,
|
||||||
);
|
{ expirationTtl: 2678400 },
|
||||||
|
);
|
||||||
|
|
||||||
return new Response(null, {
|
return new Response(null, {
|
||||||
status: 204,
|
status: 204,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user