🔀 Merge branch 'external-hooks'

This commit is contained in:
Jan Oberhauser
2020-06-10 13:02:45 +02:00
9 changed files with 159 additions and 3 deletions

View File

@@ -5,7 +5,6 @@ import {
} from 'n8n-core';
import { Command, flags } from '@oclif/command';
const open = require('open');
// import { dirname } from 'path';
import * as config from '../config';
import {
@@ -13,6 +12,7 @@ import {
CredentialTypes,
CredentialsOverwrites,
Db,
ExternalHooks,
GenericHelpers,
LoadNodesAndCredentials,
NodeTypes,
@@ -113,6 +113,10 @@ export class Start extends Command {
const credentialsOverwrites = CredentialsOverwrites();
await credentialsOverwrites.init();
// Load all external hooks
const externalHooks = ExternalHooks();
await externalHooks.init();
// Add the found types to an instance other parts of the application can use
const nodeTypes = NodeTypes();
await nodeTypes.init(loadNodesAndCredentials.nodeTypes);