From 858edd6001f180cf342926b5aed11d65370f0ac4 Mon Sep 17 00:00:00 2001 From: Felix Mosheev <9304194+felixmosh@users.noreply.github.com> Date: Thu, 12 Aug 2021 09:34:30 +0300 Subject: [PATCH] Revert "Sort jobs asc" fix #316 This reverts commit 6ed2f820f5d301efe4cf635db79cc7d4f55e9941. --- packages/api/src/queueAdapters/bull.ts | 2 +- packages/api/src/queueAdapters/bullMQ.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/src/queueAdapters/bull.ts b/packages/api/src/queueAdapters/bull.ts index 959de265..bc260fe3 100644 --- a/packages/api/src/queueAdapters/bull.ts +++ b/packages/api/src/queueAdapters/bull.ts @@ -33,7 +33,7 @@ export class BullAdapter extends BaseAdapter { start?: number, end?: number ): Promise { - return this.queue.getJobs(jobStatuses as any, start, end, true); + return this.queue.getJobs(jobStatuses as any, start, end); } // eslint-disable-next-line @typescript-eslint/no-unused-vars diff --git a/packages/api/src/queueAdapters/bullMQ.ts b/packages/api/src/queueAdapters/bullMQ.ts index dc0bdef5..b042a436 100644 --- a/packages/api/src/queueAdapters/bullMQ.ts +++ b/packages/api/src/queueAdapters/bullMQ.ts @@ -39,7 +39,7 @@ export class BullMQAdapter extends BaseAdapter { start?: number, end?: number ): Promise { - return this.queue.getJobs(jobStatuses, start, end, true); + return this.queue.getJobs(jobStatuses, start, end); } public getJobCounts(...jobStatuses: JobStatus[]): Promise {