Add period total checks

This commit is contained in:
Alex Holliday committed 2024-09-04 12:00:01 -07:00
1 parent a5697d419c
commit 3270d61624
2 files changed
+1 -1

No files matched your search

+1
View File
@@ -230,6 +230,7 @@ const getMonitorStatsById = async (req) => {
}
monitorStats.periodIncidents = getIncidents(checksForDateRange);
monitor.periodTotalChecks = checksForDateRange.length;
// If more than numToDisplay checks, pick every nth check
-1
View File
@@ -296,7 +296,6 @@ class NetworkService {
async logAndStoreCheck(data, writeToDB) {
try {
const insertedCheck = await writeToDB(data);
console.log(insertedCheck);
return insertedCheck.status;
} catch (error) {
console.log(error);