purge unused groups route, update tests

This commit is contained in:
Alex Holliday committed 2026-07-20 10:21:43 -07:00
1 parent 5433a0cf5f
commit 4d9e5821a8
7 files changed
-43

No files matched your search

@@ -44,7 +44,6 @@ export interface IMonitorController {
getMonitorsWithChecksByTeamId: RequestHandler;
exportMonitorsToJSON: RequestHandler;
getAllGames: RequestHandler;
getGroupsByTeamId: RequestHandler;
updateNotifications: RequestHandler;
}
class MonitorController implements IMonitorController {
@@ -365,16 +364,6 @@ class MonitorController implements IMonitorController {
});
});
getGroupsByTeamId = catchAsync(async (req: Request, res: Response) => {
const teamId = requireTeamId(req.user?.teamId);
const groups = await this.monitorService.getGroupsByTeamId({ teamId });
return res.status(200).json({
msg: "Groups retrieved successfully",
data: groups,
});
});
updateNotifications = catchAsync(async (req: Request, res: Response) => {
updateNotificationsValidation.parse(req.body);