Merge pull request #3526 from bluewave-labs/fix/notification-deletion

fix: remove notifications from monitors before deleting notifications
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-04-15 13:31:42 -07:00
commit 12b879ced5
1 file changed
+1 -1
@@ -200,8 +200,8 @@ export class NotificationsService implements INotificationsService {
};
deleteById = async (id: string, teamId: string): Promise<Notification> => {
const deleted = await this.notificationsRepository.deleteById(id, teamId);
await this.monitorsRepository.removeNotificationFromMonitors(id);
const deleted = await this.notificationsRepository.deleteById(id, teamId);
return deleted;
};
}