add opt out flag for recent checks
This commit is contained in:
1 parent
5fa74bd883
commit
303f47a117
7 files changed
+22
-14
No files matched your search
@@ -519,7 +519,7 @@ export class MonitorService implements IMonitorService {
|
||||
};
|
||||
|
||||
exportMonitorsToJSON = async ({ teamId }: { teamId: string }): Promise<Monitor[]> => {
|
||||
const monitors = await this.monitorsRepository.findByTeamId(teamId, {});
|
||||
const monitors = await this.monitorsRepository.findByTeamId(teamId, {}, { includeRecentChecks: false });
|
||||
|
||||
if (monitors.length === 0) {
|
||||
throw new AppError({ message: "No monitors found to export.", service: SERVICE_NAME, method: "exportMonitorsToJSON", status: 400 });
|
||||
|
||||
Reference in new issue
Block a user