From 931104fbcfb9c76f7c7a5757f191a140bab4b325 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Mon, 27 Oct 2025 09:45:21 -0700 Subject: [PATCH] type error --- server/src/service/v2/business/MonitorService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/service/v2/business/MonitorService.ts b/server/src/service/v2/business/MonitorService.ts index c0570236b..fb338c348 100644 --- a/server/src/service/v2/business/MonitorService.ts +++ b/server/src/service/v2/business/MonitorService.ts @@ -381,7 +381,7 @@ class MonitorService implements IMonitorService { // Get monitor stats const monitorStats = await MonitorStats.findOne({ monitorId: monitor._id, - }).lean(); + }); if (!monitorStats) { throw new ApiError("Monitor stats not found", 404);