remove notifications from monitors before deleting notifications

This commit is contained in:
Alex Holliday committed 2026-04-15 13:21:14 -07:00
1 parent 95db80db5d
commit 9e24cc655c
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;
};
}