Make answer and details actually display

This commit is contained in:
Regalijan 2024-02-26 11:28:35 -05:00
parent dc849b4119
commit b34ca64200
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -33,7 +33,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 approved, created_by, day, id, month, pending, type, year FROM events WHERE month = ? AND year = ?;", "SELECT answer, approved, created_by, day, details, id, month, pending, type, year FROM events WHERE month = ? AND year = ?;",
) )
.bind(now.getUTCMonth() + 1, now.getUTCFullYear()) .bind(now.getUTCMonth() + 1, now.getUTCFullYear())
.all(); .all();
@ -158,7 +158,7 @@ export default function () {
</Box> </Box>
{event.type === "rotw" ? ( {event.type === "rotw" ? (
<Box> <Box>
<Heading size="sm">RIDDLE ANSWER</Heading> <Heading size="sm">Riddle Answer</Heading>
<Text fontSize="sm" pt="2"> <Text fontSize="sm" pt="2">
{event.answer} {event.answer}
</Text> </Text>