Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Return full month again in query
  • Loading branch information
regalijan committed Apr 5, 2024
1 parent cd35c04 commit 50c0409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/events-team.tsx
Expand Up @@ -51,9 +51,9 @@ export async function loader({ context }: { context: RequestContext }) {

const now = new Date();
const monthEventList = await context.env.D1.prepare(
"SELECT answer, approved, created_by, day, details, id, month, pending, performed_at, reached_minimum_player_count, type, year FROM events WHERE month = ? AND year = ? AND (day >= ? OR pending = 1) ORDER BY day ASC;",
"SELECT answer, approved, created_by, day, details, id, month, pending, performed_at, reached_minimum_player_count, type, year FROM events WHERE month = ? AND year = ? ORDER BY day ASC;",
)
.bind(now.getUTCMonth() + 1, now.getUTCFullYear(), now.getUTCDate())
.bind(now.getUTCMonth() + 1, now.getUTCFullYear())
.all();

if (monthEventList.error)
Expand Down

0 comments on commit 50c0409

Please sign in to comment.