From cc79d29c8e98a0497e86df398226966b01be2bfb Mon Sep 17 00:00:00 2001 From: Regalijan Date: Tue, 2 Jun 2026 18:15:05 -0400 Subject: [PATCH] Fix time nonsense with new et striked --- functions/api/events-team/strikes/new.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions/api/events-team/strikes/new.ts b/functions/api/events-team/strikes/new.ts index 417b661..dc98e8d 100644 --- a/functions/api/events-team/strikes/new.ts +++ b/functions/api/events-team/strikes/new.ts @@ -19,14 +19,13 @@ export async function onRequestPost(context: RequestContext) { ) return jsonError("Invalid user id", 400); - const now = Date.now(); const id = crypto.randomUUID().replaceAll("-", ""); const actingUser = context.data.current_user.id; await D1.batch([ D1.prepare( - "INSERT INTO et_strikes (created_at, created_by, id, reason, user) VALUES (?, ?, ?, ?, ?);", - ).bind(now, actingUser, id, reason, user), + "INSERT INTO et_strikes (created_by, id, reason, user) VALUES (?, ?, ?, ?);", + ).bind(actingUser, id, reason, user), D1.prepare( "UPDATE et_members SET points = points - 100 WHERE id = ?;", ).bind(user),