Skip to content

Commit 5247750

Browse files
committed
fix(http-api): fix a bug causing a job status to not be updated
Damn typo :-)
1 parent 8161f39 commit 5247750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ace-http/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function newJob(jobdata) {
152152
ace(jobdata.internal.epubPath, {'jobid': jobdata.internal.id, 'outdir': jobdata.internal.outputDir})
153153
.then((jobData) => {
154154
var jobId = jobData[0];
155-
var idx = joblist.findIndex(job => job.internal.id === jobid);
155+
var idx = joblist.findIndex(job => job.internal.id === jobId);
156156
winston.info("[ace-http] Job finished " + joblist[idx].internal.id);
157157
joblist[idx].public.status = JOBSTATUS.done;
158158
joblist[idx].public.report.zip = joblist[idx].public.job + "/report/?type=zip";

0 commit comments

Comments
 (0)