[backend] Use configured prefix for redis messaging

This commit is contained in:
mia 2024-10-10 23:05:39 -07:00 committed by Iceshrimp development
parent db306e2829
commit 1e60ed665d
2 changed files with 2 additions and 2 deletions

View File

@ -17,6 +17,6 @@ export function createConnection() {
}
export const subscriber = createConnection();
subscriber.subscribe(config.host);
subscriber.subscribe(config.redis.prefix ?? config.host);
export const redisClient = createConnection();

View File

@ -37,7 +37,7 @@ class Publisher {
: { type: type, body: value };
redisClient.publish(
config.host,
config.redis.prefix ?? config.host,
JSON.stringify({
channel: channel,
message: message,