remove notifications from monitors before deleting notifications
This commit is contained in:
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;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user