diff --git a/app/routes/events-team.tsx b/app/routes/events-team.tsx index 458d848..60efcfc 100644 --- a/app/routes/events-team.tsx +++ b/app/routes/events-team.tsx @@ -150,6 +150,20 @@ export default function () { {event.type.toUpperCase()} + + Event Details + + {event.details} + + + {event.type === "rotw" ? ( + + RIDDLE ANSWER + + {event.answer} + + + ) : null} Host diff --git a/functions/api/events-team/events/new.ts b/functions/api/events-team/events/new.ts index fa0a83f..f3923a4 100644 --- a/functions/api/events-team/events/new.ts +++ b/functions/api/events-team/events/new.ts @@ -62,13 +62,14 @@ export async function onRequestPost(context: RequestContext) { const id = `${now.getTime()}${crypto.randomUUID().replaceAll("-", "")}`; await context.env.D1.prepare( - "INSERT INTO events (answer, created_at, created_by, day, id, month, type, year) VALUES (?, ?, ?, ?, ?, ?, ?, ?);", + "INSERT INTO events (answer, created_at, created_by, day, details, id, month, type, year) VALUES (?, ?, ?, ?, ?, ?, ?, ?);", ) .bind( context.data.body.answer || null, now.getTime(), context.data.current_user.id, day, + details, id, currentMonth, type,