diff --git a/src/repositories/jobRepository.ts b/src/repositories/jobRepository.ts index d2e27da19..205c230e0 100644 --- a/src/repositories/jobRepository.ts +++ b/src/repositories/jobRepository.ts @@ -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; }