[backend] Use configured prefix for redis messaging
This commit is contained in:
parent
db306e2829
commit
1e60ed665d
2 changed files with 2 additions and 2 deletions
|
|
@ -17,6 +17,6 @@ export function createConnection() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const subscriber = createConnection();
|
export const subscriber = createConnection();
|
||||||
subscriber.subscribe(config.host);
|
subscriber.subscribe(config.redis.prefix ?? config.host);
|
||||||
|
|
||||||
export const redisClient = createConnection();
|
export const redisClient = createConnection();
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ class Publisher {
|
||||||
: { type: type, body: value };
|
: { type: type, body: value };
|
||||||
|
|
||||||
redisClient.publish(
|
redisClient.publish(
|
||||||
config.host,
|
config.redis.prefix ?? config.host,
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
channel: channel,
|
channel: channel,
|
||||||
message: message,
|
message: message,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue