fix destructuring

This commit is contained in:
Alex Holliday committed 2025-01-08 10:17:51 -08:00
1 parent 35796dccd4
commit 2694f836c7
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -695,7 +695,6 @@ const getMonitorsByTeamId = async (req, res) => {
return monitor;
});
}
return { monitors: result, monitorCount };
} catch (error) {
error.service = SERVICE_NAME;
+1 -1
View File
@@ -47,7 +47,7 @@ const NormalizeData = (checks, rangeMin, rangeMax) => {
return normalizedChecks;
} else {
return checks.map((check) => {
return { ...check._doc, originalResponseTime: check.responseTime };
return { ...check, originalResponseTime: check.responseTime };
});
}
};