Add period total checks
This commit is contained in:
1 parent
a5697d419c
commit
3270d61624
2 files changed
+1
-1
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user