From eff7ddfad481e4c2ddec7fc8ad2088f757f5c47d Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sun, 1 Dec 2024 01:09:55 -0500 Subject: [PATCH] Don't mash unrelated fields together --- app/routes/events-team_.outstanding.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/events-team_.outstanding.tsx b/app/routes/events-team_.outstanding.tsx index b5d6d7e..17ed3e2 100644 --- a/app/routes/events-team_.outstanding.tsx +++ b/app/routes/events-team_.outstanding.tsx @@ -38,7 +38,7 @@ export async function loader({ context }: { context: RequestContext }) { } const data = await context.env.D1.prepare( - "SELECT day, details, id FROM events WHERE approved = 1 AND month = ? AND year = ? AND (performed_at IS NULL OR reached_minimum_player_count = 0);", + "SELECT day, details, id FROM events WHERE approved = 1 AND month = ? AND year = ? AND (performed_at IS NULL OR (reached_minimum_player_count = 0 AND type = 'gamenight'));", ) .bind(month, year) .all();