Debug: Notification config save/toggle logging

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Daniel 2026-03-08 20:24:50 +01:00
parent 1d409af0ee
commit 34e193fb92
2 changed files with 3 additions and 0 deletions

View file

@ -224,6 +224,7 @@ const notificationsPlugin: Plugin = {
// Save config
app.post('/api/notifications/config', requireAdmin, (req, res) => {
console.log(`${NB} Save request body:`, JSON.stringify(req.body));
const { channels } = req.body ?? {};
if (!Array.isArray(channels)) { res.status(400).json({ error: 'channels array erforderlich' }); return; }
// Validate each channel config