Skip to content

Commit

Permalink
fix(job-details): omit scripts attribute to stringify jobs (#665) fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Sep 11, 2023
1 parent 610a503 commit a76ed5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/views/dashboard/jobDetails.js
Expand Up @@ -28,7 +28,9 @@ async function handler(req, res) {
if (json === 'true') {
// Omit these private and non-stringifyable properties to avoid circular
// references parsing errors.
return res.json(_.omit(job, 'domain', 'queue', '_events', '_eventsCount'));
return res.json(
_.omit(job, 'domain', 'queue', 'scripts', '_events', '_eventsCount')
);
}

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

0 comments on commit a76ed5f

Please sign in to comment.