From f91c8d78493695d2ed0a58ff0a4110f28d091e2e Mon Sep 17 00:00:00 2001 From: Starstrike Date: Thu, 1 May 2025 18:22:19 -0400 Subject: [PATCH] fix: Remove extra parameter from RSVP creation SQL query --- backend/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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