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; }; }