diff options
Diffstat (limited to 'server/controllers/api/jobs.ts')
-rw-r--r-- | server/controllers/api/jobs.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/jobs.ts b/server/controllers/api/jobs.ts index 6a53e3083..b63e2f962 100644 --- a/server/controllers/api/jobs.ts +++ b/server/controllers/api/jobs.ts | |||
@@ -93,6 +93,9 @@ async function formatJob (job: BullJob, state?: JobState): Promise<Job> { | |||
93 | state: state || await job.getState(), | 93 | state: state || await job.getState(), |
94 | type: job.queueName as JobType, | 94 | type: job.queueName as JobType, |
95 | data: job.data, | 95 | data: job.data, |
96 | parent: job.parent | ||
97 | ? { id: job.parent.id } | ||
98 | : undefined, | ||
96 | progress: job.progress as number, | 99 | progress: job.progress as number, |
97 | priority: job.opts.priority, | 100 | priority: job.opts.priority, |
98 | error, | 101 | error, |