diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-05-29 13:21:26 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-05-29 13:21:26 +0900 |
| commit | b6f21b6edb95882d1616c36ed7eeb1f78809e2f6 (patch) | |
| tree | 958180462a10904c7ec16778d2a2adf7dd60fa93 /packages/backend/src/core/WebhookService.ts | |
| parent | enhance(backend): migrate bull to bullmq (#10910) (diff) | |
| download | misskey-b6f21b6edb95882d1616c36ed7eeb1f78809e2f6.tar.gz misskey-b6f21b6edb95882d1616c36ed7eeb1f78809e2f6.tar.bz2 misskey-b6f21b6edb95882d1616c36ed7eeb1f78809e2f6.zip | |
refactor
Diffstat (limited to 'packages/backend/src/core/WebhookService.ts')
| -rw-r--r-- | packages/backend/src/core/WebhookService.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/backend/src/core/WebhookService.ts b/packages/backend/src/core/WebhookService.ts index 57baade777..467755a072 100644 --- a/packages/backend/src/core/WebhookService.ts +++ b/packages/backend/src/core/WebhookService.ts @@ -81,7 +81,12 @@ export class WebhookService implements OnApplicationShutdown { } @bindThis - public onApplicationShutdown(signal?: string | undefined) { + public dispose(): void { this.redisForSub.off('message', this.onMessage); } + + @bindThis + public onApplicationShutdown(signal?: string | undefined): void { + this.dispose(); + } } |