mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -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 '@/workflows/workflowHistory/workflowHistory.controller.ee';
|
||||
import '@/workflows/workflows.controller';
|
||||
import { AuditEventRelay } from './eventbus/audit-event-relay.service';
|
||||
|
||||
const exec = promisify(callbackExec);
|
||||
|
||||
|
@ -252,6 +253,7 @@ export class Server extends AbstractServer {
|
|||
// ----------------------------------------
|
||||
const eventBus = Container.get(MessageEventBus);
|
||||
await eventBus.initialize();
|
||||
Container.get(AuditEventRelay).init();
|
||||
|
||||
if (this.endpointPresetCredentials !== '') {
|
||||
// POST endpoint to set preset credentials
|
||||
|
|
|
@ -10,7 +10,9 @@ export class AuditEventRelay {
|
|||
constructor(
|
||||
private readonly eventRelay: EventRelay,
|
||||
private readonly eventBus: MessageEventBus,
|
||||
) {
|
||||
) {}
|
||||
|
||||
init() {
|
||||
this.setupHandlers();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue