From 9e24cc655c1dee33be8c814bd1d232469176a745 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 15 Apr 2026 13:21:14 -0700 Subject: [PATCH] remove notifications from monitors before deleting notifications --- server/src/service/infrastructure/notificationsService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/service/infrastructure/notificationsService.ts b/server/src/service/infrastructure/notificationsService.ts index b131c4ff9..a96ccecb6 100644 --- a/server/src/service/infrastructure/notificationsService.ts +++ b/server/src/service/infrastructure/notificationsService.ts @@ -200,8 +200,8 @@ export class NotificationsService implements INotificationsService { }; deleteById = async (id: string, teamId: string): Promise => { - const deleted = await this.notificationsRepository.deleteById(id, teamId); await this.monitorsRepository.removeNotificationFromMonitors(id); + const deleted = await this.notificationsRepository.deleteById(id, teamId); return deleted; }; }