From 67d900b3dffef93b0f40b13c85bb6b817b014554 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sat, 16 Mar 2024 23:28:08 -0400 Subject: [PATCH] Fix event creation --- functions/api/events-team/events/new.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/events-team/events/new.ts b/functions/api/events-team/events/new.ts index 3bbe906..40d1aea 100644 --- a/functions/api/events-team/events/new.ts +++ b/functions/api/events-team/events/new.ts @@ -62,7 +62,7 @@ export async function onRequestPost(context: RequestContext) { const id = `${now.getTime()}${crypto.randomUUID().replaceAll("-", "")}`; await context.env.D1.prepare( - "INSERT INTO events (answer, approved, created_at, created_by, day, details, id, month, pending, type, year) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);", + "INSERT INTO events (answer, approved, created_at, created_by, day, details, id, month, pending, type, year) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);", ) .bind( context.data.body.answer || null,