Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix event creation
  • Loading branch information
regalijan committed Mar 17, 2024
1 parent bb62d3f commit 67d900b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/events-team/events/new.ts
Expand Up @@ -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,
Expand Down

0 comments on commit 67d900b

Please sign in to comment.