Merge branch 'develop' into feat/monitor-service-ts
This commit is contained in:
1 file changed
+1
@@ -187,6 +187,7 @@ class MongoChecksRepistory implements IChecksRepository {
|
|||||||
const maxIntervalMs = Number(10 * 60 * 1000);
|
const maxIntervalMs = Number(10 * 60 * 1000);
|
||||||
const bufferMs = Number(maxIntervalMs);
|
const bufferMs = Number(maxIntervalMs);
|
||||||
const lookbackMs = limitPerMonitor * maxIntervalMs + bufferMs;
|
const lookbackMs = limitPerMonitor * maxIntervalMs + bufferMs;
|
||||||
|
|
||||||
const cutoffDate = new Date(Date.now() - lookbackMs);
|
const cutoffDate = new Date(Date.now() - lookbackMs);
|
||||||
const checkGroups = await CheckModel.aggregate([
|
const checkGroups = await CheckModel.aggregate([
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user