Skip to content

Commit

Permalink
🐛 DOP-4498 removed looking for value from response
Browse files Browse the repository at this point in the history
  • Loading branch information
Caesar Bell committed May 3, 2024
1 parent 5cb4656 commit e9d91a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/repositories/jobRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export class JobRepository extends BaseRepository {
options,
`Mongo Timeout Error: Timed out while retrieving job`
);
if (response.value) {
const job: Job = response.value;
if (response) {
const job: Job = response;
await this.notify(job._id, c.get('jobUpdatesQueueUrl'), JobStatus.inProgress, 0);
return job;
}
Expand Down

0 comments on commit e9d91a8

Please sign in to comment.