Skip to content

Commit

Permalink
fix: clean mutation status arg must be 'wait' instead of 'waiting' (#77)
Browse files Browse the repository at this point in the history
relates: #76

Co-authored-by: Boris Dorofeev <boris.dorofeev@ps.kz>
  • Loading branch information
intpro and Boris Dorofeev authored May 3, 2023
1 parent de3224b commit 22c244b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mutation/queueClean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 22c244b

Please sign in to comment.