Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make solve endpoint work again
  • Loading branch information
regalijan committed Nov 20, 2024
1 parent 995ed28 commit e682669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/events-team/events/[id]/solve.ts
Expand Up @@ -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, {
Expand Down

0 comments on commit e682669

Please sign in to comment.