From 7f709660b0962a71cae864f7122da7828c3d9d0c Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Mon, 26 May 2025 14:44:14 -0400 Subject: [PATCH] Add logging to backend event GET route --- backend/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 6f21365..d962521 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -139,6 +139,7 @@ app.get('/api/events/:slug', async (req: Request, res: Response) => { // Parse needed_items from JSON string to array and boolean fields const event = rows[0]; + console.log('Raw event_conclusion_message from DB:', event.event_conclusion_message); // Add logging try { event.needed_items = event.needed_items ? JSON.parse(event.needed_items) : []; event.email_notifications_enabled = Boolean(event.email_notifications_enabled); @@ -989,4 +990,4 @@ app.listen(port, async () => { await connectToDatabase(); // Optionally run the task on startup for testing // sendConclusionEmails(); -}); +}); \ No newline at end of file