diff --git a/src/job-executor.js b/src/job-executor.js index 8434c5411..293b4e655 100644 --- a/src/job-executor.js +++ b/src/job-executor.js @@ -161,7 +161,7 @@ export default class JobExecutor { } promises.push( - this.xo.api.call(connection, job.method, assign({}, params)).then( + this.xo.callApiMethod(connection, job.method, assign({}, params)).then( value => { this._logger.notice(`Call ${job.method} (${runCallId}) is a success. (${job.id})`, { event: 'jobCall.end',