fix(backend): イベント用redis分離が上手く動かない問題を修正
This commit is contained in:
parent
b56f4b27ee
commit
39cf80e19f
9 changed files with 53 additions and 34 deletions
|
@ -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,
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue