From f0768cd31bfed97cfd2c6d0c1b0ac326782c9594 Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 7 Jul 2025 14:28:01 +0200 Subject: [PATCH] Fix email queue column error in event creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove created_at field from email_queue insert (table uses scheduled_at) - Let scheduled_at use its default value from database schema This fixes the 500 error that occurred when creating events due to trying to insert a non-existent column. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- backend/src/routes/adminEvents.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/routes/adminEvents.js b/backend/src/routes/adminEvents.js index ecb8b83..bf4580b 100644 --- a/backend/src/routes/adminEvents.js +++ b/backend/src/routes/adminEvents.js @@ -98,8 +98,8 @@ router.post('/', adminAuth, [ share_link: shareLink, password, expires_at: expires_at.toISOString() - }), - created_at: new Date() + }) + // scheduled_at will use default value }); res.json({