diff --git a/lib/core/services_monitor.js b/lib/core/services_monitor.js index 7997859c..046a7feb 100644 --- a/lib/core/services_monitor.js +++ b/lib/core/services_monitor.js @@ -11,8 +11,8 @@ class ServicesMonitor { this.checkState = {}; this.working = false; - self.events.setCommandHandler("services:register", (checkName, checkFn, time) => { - self.addCheck(checkName, checkFn, time); + self.events.setCommandHandler("services:register", (checkName, checkFn, time, initialStatus) => { + self.addCheck(checkName, checkFn, time, initialStatus); }); } }