You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I pass BULL_PREFIX=development:bull then your code client.KEYS(${config.BULL_PREFIX}:*`` select keys with queue names and their inner keys.
By passing all these keys to const uniqKeys = new Set(keys.map(key => key.replace(/^.+?:(.+?):.+?$/, '$1'))); your code always receives Set with 1 item - Set(1) {'bull'}
Solution:
Do .replaceAll for keys with BULL_PREFIX value and only after that map through the .replace(/^.+?:(.+?):.+?$/, '$1').
In such way, I receive all my queue names correctly.
The text was updated successfully, but these errors were encountered:
BULL_PREFIX=development:bull
then your codeclient.KEYS(
${config.BULL_PREFIX}:*`` select keys with queue names and their inner keys.const uniqKeys = new Set(keys.map(key => key.replace(/^.+?:(.+?):.+?$/, '$1')));
your code always receives Set with 1 item -Set(1) {'bull'}
Solution:
Do
.replaceAll
forkeys
withBULL_PREFIX
value and only after that map through the.replace(/^.+?:(.+?):.+?$/, '$1')
.In such way, I receive all my queue names correctly.
The text was updated successfully, but these errors were encountered: