Skip to content

Commit

Permalink
fix: add return type for job.waitUntilFinished()
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDuranDametis authored and manast committed May 3, 2021
1 parent 3283af2 commit 59ede97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export class Job<T = any, R = any, N extends string = string> {
/**
* Returns a promise the resolves when the job has finished. (completed or failed).
*/
async waitUntilFinished(queueEvents: QueueEvents, ttl?: number) {
async waitUntilFinished(queueEvents: QueueEvents, ttl?: number): Promise<R> {
await this.queue.waitUntilReady();

const jobId = this.id;
Expand Down

0 comments on commit 59ede97

Please sign in to comment.