diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-09 17:09:27 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-04-09 17:09:27 +0900 |
| commit | 39cf80e19f10676b263004e0a1402fdc5a9613f9 (patch) | |
| tree | a39d41c80ef6b33dc1a4be12ebd2fbe00f89bf11 /packages/backend/src/core/WebhookService.ts | |
| parent | fix(backend): ストリーミングのLTLチャンネルでサーバー側に... (diff) | |
| download | sharkey-39cf80e19f10676b263004e0a1402fdc5a9613f9.tar.gz sharkey-39cf80e19f10676b263004e0a1402fdc5a9613f9.tar.bz2 sharkey-39cf80e19f10676b263004e0a1402fdc5a9613f9.zip | |
fix(backend): イベント用redis分離が上手く動かない問題を修正
Diffstat (limited to 'packages/backend/src/core/WebhookService.ts')
| -rw-r--r-- | packages/backend/src/core/WebhookService.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/backend/src/core/WebhookService.ts b/packages/backend/src/core/WebhookService.ts index 85594f8557..926115613b 100644 --- a/packages/backend/src/core/WebhookService.ts +++ b/packages/backend/src/core/WebhookService.ts @@ -13,14 +13,14 @@ export class WebhookService implements OnApplicationShutdown { private webhooks: Webhook[] = []; constructor( - @Inject(DI.redisForPubsub) - private redisForPubsub: Redis.Redis, + @Inject(DI.redisForSub) + private redisForSub: Redis.Redis, @Inject(DI.webhooksRepository) private webhooksRepository: WebhooksRepository, ) { //this.onMessage = this.onMessage.bind(this); - this.redisForPubsub.on('message', this.onMessage); + this.redisForSub.on('message', this.onMessage); } @bindThis @@ -82,6 +82,6 @@ export class WebhookService implements OnApplicationShutdown { @bindThis public onApplicationShutdown(signal?: string | undefined) { - this.redisForPubsub.off('message', this.onMessage); + this.redisForSub.off('message', this.onMessage); } } |