fix: Remove extra parameter from RSVP creation SQL query

This commit is contained in:
Starstrike
2025-05-01 18:22:19 -04:00
parent a33d521af3
commit f91c8d7849

View File

@@ -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