fix destructuring
This commit is contained in:
1 parent
35796dccd4
commit
2694f836c7
2 files changed
+1
-2
No files matched your search
@@ -695,7 +695,6 @@ const getMonitorsByTeamId = async (req, res) => {
|
||||
return monitor;
|
||||
});
|
||||
}
|
||||
|
||||
return { monitors: result, monitorCount };
|
||||
} catch (error) {
|
||||
error.service = SERVICE_NAME;
|
||||
|
||||
@@ -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 };
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user