From 3bdfe5567d1df972446323716638999c98c6db30 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 2 Jan 2026 22:20:43 +0000 Subject: [PATCH] Rename methods --- server/src/services/business/MonitorService.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/server/src/services/business/MonitorService.ts b/server/src/services/business/MonitorService.ts index abf8f864f..384e6bc7c 100644 --- a/server/src/services/business/MonitorService.ts +++ b/server/src/services/business/MonitorService.ts @@ -522,10 +522,7 @@ class MonitorService implements IMonitorService { return {}; }; - private getEmbedChecksRecent = async ( - monitor: MonitorEntity, - startDate: Date - ) => { + private getChecksRecent = async (monitor: MonitorEntity, startDate: Date) => { const endDate = new Date(); const matchStage: { "metadata.monitorId": mongoose.Types.ObjectId; @@ -636,7 +633,7 @@ class MonitorService implements IMonitorService { }; }; - private getEmbedChecksOtherRanges = async ( + private getChecksOtherRanges = async ( monitor: MonitorEntity, range: string, startDate: Date @@ -732,9 +729,9 @@ class MonitorService implements IMonitorService { const startDate = getStartDate(range); if (range === "24h" || range === "7d" || range === "30d") { - return await this.getEmbedChecksOtherRanges(monitor, range, startDate); + return await this.getChecksOtherRanges(monitor, range, startDate); } else { - return await this.getEmbedChecksRecent(monitor, startDate); + return await this.getChecksRecent(monitor, startDate); } };