Skip to content

Commit

Permalink
Fix valid queue name check
Browse files Browse the repository at this point in the history
  • Loading branch information
mugli committed Aug 20, 2019
1 parent 397c40f commit ed53202
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/graphql-resolvers.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,11 @@ exports.Query = objectType({
const queueNames = await redis.smembers(orkidDefaults.QUENAMES);

for (const name of queueNames) {
const exists = await redis.exists(`${orkidDefaults.NAMESPACE}:queue:${name}`);
const exists = await redis.exists(name);

if (exists) {
validQueueNames.push(name);
const splitted = name.split(':');
validQueueNames.push(splitted[splitted.length - 1]);
}
}

Expand Down

0 comments on commit ed53202

Please sign in to comment.