From 6cd50ac1b4e336c1781d28664a5f90d43b6e84d3 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sat, 25 Jan 2025 00:46:25 -0500 Subject: [PATCH] oops --- app/routes/inactivities.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/inactivities.tsx b/app/routes/inactivities.tsx index 273661b..6f33b17 100644 --- a/app/routes/inactivities.tsx +++ b/app/routes/inactivities.tsx @@ -58,7 +58,7 @@ export async function loader({ context }: { context: RequestContext }) { const today = new Date().toISOString().split("T").at(0); const { results } = await context.env.D1.prepare( - "SELECT decisions, departments, end, hiatus, id, start, user FROM inactivity_notices WHERE start <= ?1 AND end >= date($1, '-1 month') ORDER BY end;", + "SELECT decisions, departments, end, hiatus, id, start, user FROM inactivity_notices WHERE start <= ?1 AND end >= date(?1, '-1 month') ORDER BY end;", ) .bind(today) .all();