added markdown notes for events

This commit is contained in:
2025-06-29 10:07:01 -04:00
parent 28efa115ad
commit c7c121e23d
13 changed files with 174 additions and 9 deletions

View File

@@ -13,7 +13,12 @@ export async function PATCH(req: NextRequest, { params }: { params: { eventId: s
const body = await req.json();
try {
const updated = await mutations.updateEvent(eventId, body);
const updated = await mutations.updateEvent(eventId, {
name: body.name,
date: body.date,
location: body.location,
notes: body.notes,
});
return NextResponse.json(updated);
} catch (error) {
console.error('[PATCH EVENT]', error);