We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2f81cb commit 0cc7817Copy full SHA for 0cc7817
src/health-check.js
@@ -278,7 +278,8 @@ class HealthCheck {
278
service.status.last_unhealthy = process.hrtime.bigint();
279
}
280
281
- await this.stats.updateService(service.name, service.status);
+
282
+ this.stats.updateService(service.name, service.status);
283
284
await this.alerts.alert(service);
285
service.status.last_status = service.status.up;
src/misc/stats.js
@@ -7,7 +7,7 @@ class Stats {
7
for (var i = 0; i < this.services.length; i++) {
8
if (this.services[i].name == name) {
9
this.services[i].status = status;
10
- this.services.date = Date.now();
+ this.services[i].date = Date.now();
11
return;
12
13
0 commit comments