Skip to content

Commit

Permalink
fix(http-api): fix a bug causing a job status to not be updated
Browse files Browse the repository at this point in the history
Damn typo :-)
  • Loading branch information
rdeltour committed Jan 26, 2018
1 parent 8161f39 commit 5247750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ace-http/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function newJob(jobdata) {
ace(jobdata.internal.epubPath, {'jobid': jobdata.internal.id, 'outdir': jobdata.internal.outputDir})
.then((jobData) => {
var jobId = jobData[0];
var idx = joblist.findIndex(job => job.internal.id === jobid);
var idx = joblist.findIndex(job => job.internal.id === jobId);
winston.info("[ace-http] Job finished " + joblist[idx].internal.id);
joblist[idx].public.status = JOBSTATUS.done;
joblist[idx].public.report.zip = joblist[idx].public.job + "/report/?type=zip";
Expand Down

0 comments on commit 5247750

Please sign in to comment.