Use correct array for normalization
This commit is contained in:
1 parent
70a4058993
commit
6aef23e8a4
1 file changed
+1
-1
@@ -249,7 +249,7 @@ const getMonitorStatsById = async (req) => {
|
|||||||
|
|
||||||
// Normalize checks if requested
|
// Normalize checks if requested
|
||||||
if (normalize !== undefined) {
|
if (normalize !== undefined) {
|
||||||
const normailzedChecks = NormalizeData(checksForDateRange, 1, 100);
|
const normailzedChecks = NormalizeData(nthChecks, 1, 100);
|
||||||
monitorStats.checks = normailzedChecks;
|
monitorStats.checks = normailzedChecks;
|
||||||
} else {
|
} else {
|
||||||
monitorStats.checks = nthChecks;
|
monitorStats.checks = nthChecks;
|
||||||
|
|||||||
Reference in new issue
Block a user