From bf09ec8133e21c6a3da77a118583b3bb380597ac Mon Sep 17 00:00:00 2001 From: Min Zhang Date: Mon, 13 Nov 2017 15:59:57 -0800 Subject: [PATCH] fix: fix syntax --- lib/jobs.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/jobs.js b/lib/jobs.js index 756e020..518ee8a 100644 --- a/lib/jobs.js +++ b/lib/jobs.js @@ -46,8 +46,7 @@ const retryOptions = { */ function start(buildConfig, callback) { return redis.hget(`${queuePrefix}buildConfigs`, buildConfig.buildId) - .then(JSON.parse) - .then(executor.start) + .then(fullBuildConfig => executor.start(JSON.parse(fullBuildConfig))) .then(result => callback(null, result), (err) => { winston.error('err in start job: ', err); callback(err);