From 436427aff0550e6ac4f035cfb0d008d278d9914f Mon Sep 17 00:00:00 2001 From: Regalijan Date: Thu, 5 Dec 2024 21:43:59 -0500 Subject: [PATCH] Oops I forgot to remove the old second statement --- functions/api/events-team/strikes/new.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/events-team/strikes/new.ts b/functions/api/events-team/strikes/new.ts index db34eb0..fc9ac38 100644 --- a/functions/api/events-team/strikes/new.ts +++ b/functions/api/events-team/strikes/new.ts @@ -23,7 +23,7 @@ export async function onRequestPost(context: RequestContext) { await D1.batch([ D1.prepare( - "INSERT INTO et_strikes (created_at, created_by, id, reason, user) VALUES (?, ?, ?, ?, ?); UPDATE et_members SET points = points - 100 WHERE id = ?5;", + "INSERT INTO et_strikes (created_at, created_by, id, reason, user) VALUES (?, ?, ?, ?, ?);", ).bind(now, actingUser, id, reason, user), D1.prepare( "UPDATE et_members SET points = points - 100 WHERE id = ?;",