type error

This commit is contained in:
Alex Holliday committed 2025-10-27 09:45:21 -07:00
1 parent 1d5cec94a5
commit 931104fbcf
1 file changed
+1 -1
@@ -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);