mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-20 18:49:27 -08:00
## 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>
10 lines
191 B
TypeScript
10 lines
191 B
TypeScript
import { Service } from 'typedi';
|
|
import { AbstractServer } from '@/AbstractServer';
|
|
|
|
@Service()
|
|
export class WebhookServer extends AbstractServer {
|
|
constructor() {
|
|
super('webhook');
|
|
}
|
|
}
|