Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
oops
  • Loading branch information
regalijan committed Jan 25, 2025
1 parent 17b57d3 commit 6cd50ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/inactivities.tsx
Expand Up @@ -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();
Expand Down

0 comments on commit 6cd50ac

Please sign in to comment.