Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't mash unrelated fields together
  • Loading branch information
regalijan committed Dec 1, 2024
1 parent 5650f25 commit eff7ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/events-team_.outstanding.tsx
Expand Up @@ -38,7 +38,7 @@ export async function loader({ context }: { context: RequestContext }) {
}

const data = await context.env.D1.prepare(
"SELECT day, details, id FROM events WHERE approved = 1 AND month = ? AND year = ? AND (performed_at IS NULL OR reached_minimum_player_count = 0);",
"SELECT day, details, id FROM events WHERE approved = 1 AND month = ? AND year = ? AND (performed_at IS NULL OR (reached_minimum_player_count = 0 AND type = 'gamenight'));",
)
.bind(month, year)
.all();
Expand Down

0 comments on commit eff7ddf

Please sign in to comment.