Actually return certified status

This commit is contained in:
Regalijan 2024-02-27 23:49:40 -05:00
parent 1ba4deed64
commit 16617eca72
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -42,7 +42,7 @@ 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, type, year FROM events WHERE month = ? AND year = ?;",
"SELECT answer, approved, created_by, day, details, id, month, pending, reached_minimum_player_count, type, year FROM events WHERE month = ? AND year = ?;",
)
.bind(now.getUTCMonth() + 1, now.getUTCFullYear())
.all();
@ -253,7 +253,10 @@ export default function () {
<Button
colorScheme="blue"
ml="8px"
onClick={async () => await certify(selectedEvent)}
onClick={async () => {
await certify(selectedEvent);
onClose();
}}
>
Certify
</Button>