Skip to content

Commit

Permalink
Sort jobs asc
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Jul 25, 2021
1 parent b332982 commit 6ed2f82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/queueAdapters/bull.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class BullAdapter extends BaseAdapter {
start?: number,
end?: number
): Promise<Job[]> {
return this.queue.getJobs(jobStatuses as any, start, end);
return this.queue.getJobs(jobStatuses as any, start, end, true);
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/queueAdapters/bullMQ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class BullMQAdapter extends BaseAdapter {
start?: number,
end?: number
): Promise<Job[]> {
return this.queue.getJobs(jobStatuses, start, end);
return this.queue.getJobs(jobStatuses, start, end, true);
}

public getJobCounts(...jobStatuses: JobStatus[]): Promise<JobCounts> {
Expand Down

0 comments on commit 6ed2f82

Please sign in to comment.