From ee7b5492565497aa2199a21dacbdc50a2dbf31e4 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Wed, 20 Nov 2024 17:02:57 -0500 Subject: [PATCH] Remove solve endpoint --- functions/api/events-team/events/[id]/solve.ts | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 functions/api/events-team/events/[id]/solve.ts diff --git a/functions/api/events-team/events/[id]/solve.ts b/functions/api/events-team/events/[id]/solve.ts deleted file mode 100644 index 15c1e31..0000000 --- a/functions/api/events-team/events/[id]/solve.ts +++ /dev/null @@ -1,11 +0,0 @@ -export async function onRequestPost(context: RequestContext) { - await context.env.D1.prepare( - "UPDATE events SET answered_at = ? WHERE id = ?;", - ) - .bind(Date.now(), context.data.event.id) - .run(); - - return new Response(null, { - status: 204, - }); -}