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

@@ -72,7 +72,6 @@ export interface IMonitorService {
order?: "asc" | "desc";
}): Promise<MonitorsWithChecksByTeamIdResult>;
getAllGames(): GamesMap;
getGroupsByTeamId(args: { teamId: string }): Promise<string[]>;
// update
editMonitor(args: { teamId: string; monitorId: string; body: Partial<Monitor> }): Promise<Monitor>;
@@ -422,10 +421,6 @@ export class MonitorService implements IMonitorService {
return this.games;
};
getGroupsByTeamId = async ({ teamId }: { teamId: string }): Promise<string[]> => {
return await this.monitorsRepository.findGroupsByTeamId(teamId);
};
editMonitor = async ({ teamId, monitorId, body }: { teamId: string; monitorId: string; body: Partial<Monitor> }) => {
const editedMonitor = await this.monitorsRepository.updateById(monitorId, teamId, body);
await this.scheduler.updateJob(editedMonitor);