Another question mark

This commit is contained in:
Regalijan 2024-02-26 11:21:25 -05:00
parent f1fa3c8987
commit dc849b4119
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -62,7 +62,7 @@ export async function onRequestPost(context: RequestContext) {
const id = `${now.getTime()}${crypto.randomUUID().replaceAll("-", "")}`; const id = `${now.getTime()}${crypto.randomUUID().replaceAll("-", "")}`;
await context.env.D1.prepare( await context.env.D1.prepare(
"INSERT INTO events (answer, created_at, created_by, day, details, id, month, type, year) VALUES (?, ?, ?, ?, ?, ?, ?, ?);", "INSERT INTO events (answer, created_at, created_by, day, details, id, month, type, year) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);",
) )
.bind( .bind(
context.data.body.answer || null, context.data.body.answer || null,