Actually return certified status
This commit is contained in:
parent
1ba4deed64
commit
16617eca72
@ -42,7 +42,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, 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())
|
.bind(now.getUTCMonth() + 1, now.getUTCFullYear())
|
||||||
.all();
|
.all();
|
||||||
@ -253,7 +253,10 @@ export default function () {
|
|||||||
<Button
|
<Button
|
||||||
colorScheme="blue"
|
colorScheme="blue"
|
||||||
ml="8px"
|
ml="8px"
|
||||||
onClick={async () => await certify(selectedEvent)}
|
onClick={async () => {
|
||||||
|
await certify(selectedEvent);
|
||||||
|
onClose();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
Certify
|
Certify
|
||||||
</Button>
|
</Button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user