Skip to content
This repository has been archived by the owner on Apr 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #29 from screwdriver-cd/job
Browse files Browse the repository at this point in the history
fix: fix syntax
  • Loading branch information
d2lam authored Nov 14, 2017
2 parents 9e9a4b2 + bf09ec8 commit d786fbc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d786fbc

Please sign in to comment.