Return performed_at property in event list query

This commit is contained in:
Regalijan 2024-03-06 16:15:35 -05:00
parent 50e4979020
commit b070373231
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -48,7 +48,7 @@ export async function loader({ context }: { context: RequestContext }) {
const now = new Date(); const now = new Date();
const monthEventList = await context.env.D1.prepare( const monthEventList = await context.env.D1.prepare(
"SELECT answer, approved, created_by, day, details, id, month, pending, reached_minimum_player_count, type, year FROM events WHERE month = ? AND year = ? 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()) .bind(now.getUTCMonth() + 1, now.getUTCFullYear())
.all(); .all();