refactor(core): Make external hooks type-safe, and add tests (#12893)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-01-29 10:33:39 +01:00
committed by GitHub
parent 3d27a14987
commit 05b5f95331
17 changed files with 289 additions and 150 deletions

View File

@@ -49,7 +49,7 @@ export class Worker extends BaseCommand {
this.logger.info('Stopping worker...');
try {
await this.externalHooks?.run('n8n.stop', []);
await this.externalHooks?.run('n8n.stop');
} catch (error) {
await this.exitWithCrash('Error shutting down worker', error);
}