Skip to content

Commit a76ed5f

Browse files
authored
fix(job-details): omit scripts attribute to stringify jobs (#665) fixes #598
1 parent 610a503 commit a76ed5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server/views/dashboard/jobDetails.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ async function handler(req, res) {
2828
if (json === 'true') {
2929
// Omit these private and non-stringifyable properties to avoid circular
3030
// references parsing errors.
31-
return res.json(_.omit(job, 'domain', 'queue', '_events', '_eventsCount'));
31+
return res.json(
32+
_.omit(job, 'domain', 'queue', 'scripts', '_events', '_eventsCount')
33+
);
3234
}
3335

3436
const jobState = queue.IS_BEE ? job.status : await job.getState();

0 commit comments

Comments
 (0)