Merge pull request #3526 from bluewave-labs/fix/notification-deletion
fix: remove notifications from monitors before deleting notifications
This commit is contained in:
1 file changed
+1
-1
@@ -200,8 +200,8 @@ export class NotificationsService implements INotificationsService {
|
|||||||
};
|
};
|
||||||
|
|
||||||
deleteById = async (id: string, teamId: string): Promise<Notification> => {
|
deleteById = async (id: string, teamId: string): Promise<Notification> => {
|
||||||
const deleted = await this.notificationsRepository.deleteById(id, teamId);
|
|
||||||
await this.monitorsRepository.removeNotificationFromMonitors(id);
|
await this.monitorsRepository.removeNotificationFromMonitors(id);
|
||||||
|
const deleted = await this.notificationsRepository.deleteById(id, teamId);
|
||||||
return deleted;
|
return deleted;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user