From 22c244b5101943e071e2c7fa28288f54968c9e01 Mon Sep 17 00:00:00 2001 From: Boris Dorofeev Date: Wed, 3 May 2023 22:42:55 +0600 Subject: [PATCH] fix: clean mutation status arg must be 'wait' instead of 'waiting' (#77) relates: #76 Co-authored-by: Boris Dorofeev --- src/mutation/queueClean.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mutation/queueClean.ts b/src/mutation/queueClean.ts index d6f0c67..c104c49 100644 --- a/src/mutation/queueClean.ts +++ b/src/mutation/queueClean.ts @@ -41,7 +41,7 @@ export function createQueueCleanFC( }, resolve: async (_, { prefix, queueName, filter: { grace, status, limit } }) => { const queue = await findQueue(prefix, queueName, opts); - const jobsId = await queue.clean(grace, limit, status); + const jobsId = await queue.clean(grace, limit, status === 'waiting' ? 'wait' : status); return { jobsId, };