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

fix: fix syntax #29

Merged
merged 1 commit into from
Nov 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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