diff --git a/backend/src/index.ts b/backend/src/index.ts index 485a3c9..8ea0d2e 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -291,7 +291,7 @@ app.post('/api/events/:slug/rsvp', async (req: Request, res: Response) => { const result = await db.run( 'INSERT INTO rsvps (event_id, name, attending, bringing_guests, guest_count, guest_names, items_bringing, other_items) VALUES (?, ?, ?, ?, ?, ?, ?, ?)', - [eventId, name, attending, bringing_guests, guest_count, JSON.stringify(parsedGuestNames), JSON.stringify(parsedItemsBringing), other_items || '', new Date().toISOString()] + [eventId, name, attending, bringing_guests, guest_count, JSON.stringify(parsedGuestNames), JSON.stringify(parsedItemsBringing), other_items || ''] ); // Return the complete RSVP data including the parsed arrays