Make solve endpoint work again

This commit is contained in:
Regalijan 2024-11-20 16:59:02 -05:00
parent 995ed28b23
commit e6826690c3
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -2,7 +2,7 @@ export async function onRequestPost(context: RequestContext) {
await context.env.D1.prepare(
"UPDATE events SET answered_at = ? WHERE id = ?;",
)
.bind(Date.now(), context.params.id)
.bind(Date.now(), context.data.event.id)
.run();
return new Response(null, {