caas: make heartbeat not error if not configured yet

the heartbeat errors when the domain is setup but the restore/setup call
has not been invoked yet from the caas sever
This commit is contained in:
Girish Ramakrishnan
2019-04-26 12:53:03 -07:00
parent 3ded411c15
commit 3bcab14de1
2 changed files with 25 additions and 29 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ function startPreActivationJobs(callback) {
gJobs.caasHeartbeat = new CronJob({
cronTime: `${seconds} */1 * * * *`, // every minute
onTick: caas.sendHeartbeat,
onTick: caas.sendHeartbeat(NOOP_CALLBACK),
start: true
});
}