mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(core): Fix init for AuditEventRelay
(#9839)
This commit is contained in:
parent
b807e6726f
commit
16d3083af7
|
@ -66,6 +66,7 @@ import '@/ExternalSecrets/ExternalSecrets.controller.ee';
|
||||||
import '@/license/license.controller';
|
import '@/license/license.controller';
|
||||||
import '@/workflows/workflowHistory/workflowHistory.controller.ee';
|
import '@/workflows/workflowHistory/workflowHistory.controller.ee';
|
||||||
import '@/workflows/workflows.controller';
|
import '@/workflows/workflows.controller';
|
||||||
|
import { AuditEventRelay } from './eventbus/audit-event-relay.service';
|
||||||
|
|
||||||
const exec = promisify(callbackExec);
|
const exec = promisify(callbackExec);
|
||||||
|
|
||||||
|
@ -252,6 +253,7 @@ export class Server extends AbstractServer {
|
||||||
// ----------------------------------------
|
// ----------------------------------------
|
||||||
const eventBus = Container.get(MessageEventBus);
|
const eventBus = Container.get(MessageEventBus);
|
||||||
await eventBus.initialize();
|
await eventBus.initialize();
|
||||||
|
Container.get(AuditEventRelay).init();
|
||||||
|
|
||||||
if (this.endpointPresetCredentials !== '') {
|
if (this.endpointPresetCredentials !== '') {
|
||||||
// POST endpoint to set preset credentials
|
// POST endpoint to set preset credentials
|
||||||
|
|
|
@ -10,7 +10,9 @@ export class AuditEventRelay {
|
||||||
constructor(
|
constructor(
|
||||||
private readonly eventRelay: EventRelay,
|
private readonly eventRelay: EventRelay,
|
||||||
private readonly eventBus: MessageEventBus,
|
private readonly eventBus: MessageEventBus,
|
||||||
) {
|
) {}
|
||||||
|
|
||||||
|
init() {
|
||||||
this.setupHandlers();
|
this.setupHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue