Skip to content

Commit

Permalink
[TM-1531] change job length validation in bulk update
Browse files Browse the repository at this point in the history
  • Loading branch information
egrojMonroy committed Dec 23, 2024
1 parent 1e37339 commit be56314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/job-service/src/jobs/delayed-jobs.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class DelayedJobsController {
order: [["createdAt", "DESC"]]
});

if (!jobs.length) {
if (jobs.length !== jobUpdates.length) {
throw new NotFoundException("Some jobs in the request could not be updated");
}

Expand Down

0 comments on commit be56314

Please sign in to comment.