purge unused groups route, update tests
This commit is contained in:
1 parent
5433a0cf5f
commit
4d9e5821a8
7 files changed
-43
No files matched your search
@@ -382,14 +382,6 @@ class MongoMonitorsRepository implements IMonitorsRepository {
|
||||
);
|
||||
};
|
||||
|
||||
findGroupsByTeamId = async (teamId: string): Promise<string[]> => {
|
||||
const groups = await MonitorModel.distinct("group", {
|
||||
teamId: new mongoose.Types.ObjectId(teamId),
|
||||
group: { $nin: [null, ""] },
|
||||
});
|
||||
return groups.sort();
|
||||
};
|
||||
|
||||
removeNotificationFromMonitors = async (notificationId: string): Promise<void> => {
|
||||
await MonitorModel.updateMany({ notifications: notificationId }, { $pull: { notifications: notificationId } });
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user