Don't mash unrelated fields together
This commit is contained in:
parent
5650f2561d
commit
eff7ddfad4
@ -38,7 +38,7 @@ export async function loader({ context }: { context: RequestContext }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const data = await context.env.D1.prepare(
|
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)
|
.bind(month, year)
|
||||||
.all();
|
.all();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user