Skip to content

Commit 38c3a18

Browse files
author
Boris
committed
fix: omitted * case
1 parent 5194ab0 commit 38c3a18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/src/schema/query/queueKeys.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export function createQueueKeysFC(schemaComposer: SchemaComposer<any>) {
2727
if (nameCase >= 2) {
2828
prefixMaskNorm = prefixMaskNorm.split(':').slice(0, 2).join(':') + ':';
2929
} else if (nameCase === 1) {
30-
prefixMaskNorm += ':';
30+
prefixMaskNorm += prefixMaskNorm.endsWith(':') ? '*:' : ':';
3131
} else {
32-
prefixMaskNorm += prefixMaskNorm.endsWith('*') ? ':*:' : '*:*:';
32+
prefixMaskNorm += ':*:';
3333
}
3434

3535
const keys = await connection.keys(prefixMaskNorm + 'meta');

0 commit comments

Comments
 (0)