fix: Remove extra parameter from RSVP creation SQL query
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user