Fix jwt-token

This commit is contained in:
2025-09-22 10:31:57 +02:00
parent 64f22e615b
commit 73503d8e61

View File

@@ -229,6 +229,14 @@ router.delete('/rules/:id', authenticateToken, async (req, res) => {
});
}
// Delete all alert logs associated with this rule first
await AlertLog.destroy({
where: {
alert_rule_id: req.params.id
}
});
// Now delete the alert rule
await alertRule.destroy();
res.json({