This commit is contained in:
Regalijan 2025-01-25 00:46:25 -05:00
parent 17b57d378d
commit 6cd50ac1b4
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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();