GetJob returns a promise of job or null (#27448)

Says it in the jsdoc even.
This commit is contained in:
Bond
2018-07-21 01:58:10 +01:00
committed by Wesley Wigham
parent 9fa36689ab
commit e1d9a3c9f4

View File

@@ -476,7 +476,7 @@ declare namespace Bull {
* Returns a promise that will return the job instance associated with the jobId parameter.
* If the specified job cannot be located, the promise callback parameter will be set to null.
*/
getJob(jobId: JobId): Promise<Job<T>>;
getJob(jobId: JobId): Promise<Job<T> | null>;
/**
* Returns a promise that will return an array with the waiting jobs between start and end.