diff --git a/nest_backend/routes/repository/alerts/alert.py b/nest_backend/routes/repository/alerts/alert.py index f9bd4b2..315a800 100644 --- a/nest_backend/routes/repository/alerts/alert.py +++ b/nest_backend/routes/repository/alerts/alert.py @@ -185,6 +185,9 @@ def page_alert(aid): if not condition.repository_id: ext.session.delete(condition) ext.session.commit() + for notification in alert.notifications: + ext.session.delete(notification) + ext.session.commit() ext.session.delete(alert) ext.session.commit() except Exception as e: