mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(core): Unify application components shutdown (#8097)
## Summary Add `ShutdownService` and `OnShutdown` decorator for more unified way to shutdown different components. Use this new way in the following components: - HTTP(S) server - Pruning service - Push connection - License --------- Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -19,7 +19,7 @@ export class Webhook extends BaseCommand {
|
||||
help: flags.help({ char: 'h' }),
|
||||
};
|
||||
|
||||
protected server = new WebhookServer();
|
||||
protected server = Container.get(WebhookServer);
|
||||
|
||||
constructor(argv: string[], cmdConfig: IConfig) {
|
||||
super(argv, cmdConfig);
|
||||
|
||||
Reference in New Issue
Block a user