fix(backend): イベント用redis分離が上手く動かない問題を修正

This commit is contained in:
syuilo 2023-04-09 17:09:27 +09:00
parent b56f4b27ee
commit 39cf80e19f
9 changed files with 53 additions and 34 deletions

View file

@ -26,8 +26,8 @@ export class GlobalEventService {
@Inject(DI.config)
private config: Config,
@Inject(DI.redis)
private redisClient: Redis.Redis,
@Inject(DI.redisForPub)
private redisForPub: Redis.Redis,
) {
}
@ -37,7 +37,7 @@ export class GlobalEventService {
{ type: type, body: null } :
{ type: type, body: value };
this.redisClient.publish(this.config.host, JSON.stringify({
this.redisForPub.publish(this.config.host, JSON.stringify({
channel: channel,
message: message,
}));