Fix email queue column error in event creation

- 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 <[email protected]>
This commit is contained in:
2025-07-07 14:28:01 +02:00
co-authored by Claude
parent 91601c77a4
commit f0768cd31b
+2 -2
View File
@@ -98,8 +98,8 @@ router.post('/', adminAuth, [
share_link: shareLink, share_link: shareLink,
password, password,
expires_at: expires_at.toISOString() expires_at: expires_at.toISOString()
}), })
created_at: new Date() // scheduled_at will use default value
}); });
res.json({ res.json({