mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
refactor(core): Convert external-secrets code into a backend module (#15769)
This commit is contained in:
committed by
GitHub
parent
10dc73fc82
commit
1587eb0742
@@ -11,7 +11,6 @@ import {
|
||||
ObjectStoreService,
|
||||
DataDeduplicationService,
|
||||
ErrorReporter,
|
||||
ExternalSecretsProxy,
|
||||
} from 'n8n-core';
|
||||
import { ensureError, sleep, UserError } from 'n8n-workflow';
|
||||
|
||||
@@ -26,7 +25,6 @@ import { TestRunCleanupService } from '@/evaluation.ee/test-runner/test-run-clea
|
||||
import { MessageEventBus } from '@/eventbus/message-event-bus/message-event-bus';
|
||||
import { TelemetryEventRelay } from '@/events/relays/telemetry.event-relay';
|
||||
import { ExternalHooks } from '@/external-hooks';
|
||||
import { ExternalSecretsManager } from '@/external-secrets.ee/external-secrets-manager.ee';
|
||||
import { License } from '@/license';
|
||||
import { LoadNodesAndCredentials } from '@/load-nodes-and-credentials';
|
||||
import { ModuleRegistry } from '@/modules/module-registry';
|
||||
@@ -88,7 +86,6 @@ export abstract class BaseCommand extends Command {
|
||||
instance: this.instanceSettings,
|
||||
})
|
||||
) {
|
||||
// register module in the registry for the dependency injection
|
||||
await import(`../modules/${moduleName}/${moduleName}.module`);
|
||||
|
||||
this.modulesConfig.addLoadedModule(moduleName);
|
||||
@@ -276,12 +273,6 @@ export abstract class BaseCommand extends Command {
|
||||
}
|
||||
}
|
||||
|
||||
async initExternalSecrets() {
|
||||
const secretsManager = Container.get(ExternalSecretsManager);
|
||||
await secretsManager.init();
|
||||
Container.get(ExternalSecretsProxy).setManager(secretsManager);
|
||||
}
|
||||
|
||||
initWorkflowHistory() {
|
||||
Container.get(WorkflowHistoryManager).init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user