From 98b191167b147b1e980843114f11131c287169a8 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Wed, 14 Feb 2024 14:29:40 -0500 Subject: [PATCH] Don't select all in events query --- app/routes/events-team.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/events-team.tsx b/app/routes/events-team.tsx index 7de010a..37b88a6 100644 --- a/app/routes/events-team.tsx +++ b/app/routes/events-team.tsx @@ -16,7 +16,7 @@ import { type ReactNode } from "react"; export async function loader({ context }: { context: RequestContext }) { const now = new Date(); const monthEventList = await context.env.D1.prepare( - "SELECT * FROM events WHERE month = ? AND year = ?;", + "SELECT created_by, day, month, type, year FROM events WHERE month = ? AND year = ?;", ) .bind(now.getUTCMonth() + 1, now.getUTCFullYear()) .all();