Skip to content

Commit

Permalink
Fix placement of prefix in Redis channel
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed May 8, 2023
1 parent ae379ff commit ed5bf61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connections.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ module.exports = function () {
// Subscribe to redis channel if this apiKey is new
if (keySubscriptions[apiKey].length == 0) {
this.addKeyMapping(apiKeyID, apiKey);
redis.subscribe('api-key:' + (config.get('redis').prefix || '') + apiKeyID);
redis.subscribe((config.get('redis').prefix || '') + 'api-key:' + apiKeyID);
}
keySubscriptions[apiKey].push(subscription);

Expand Down

0 comments on commit ed5bf61

Please sign in to comment.