mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Initialize source control unconditionally (#16929)
This commit is contained in:
@@ -171,16 +171,14 @@ export class Server extends AbstractServer {
|
||||
// Source Control
|
||||
// ----------------------------------------
|
||||
|
||||
if (this.licenseState.isSourceControlLicensed()) {
|
||||
try {
|
||||
const { SourceControlService } = await import(
|
||||
'@/environments.ee/source-control/source-control.service.ee'
|
||||
);
|
||||
await Container.get(SourceControlService).init();
|
||||
await import('@/environments.ee/source-control/source-control.controller.ee');
|
||||
} catch (error) {
|
||||
this.logger.warn(`Source control initialization failed: ${(error as Error).message}`);
|
||||
}
|
||||
try {
|
||||
const { SourceControlService } = await import(
|
||||
'@/environments.ee/source-control/source-control.service.ee'
|
||||
);
|
||||
await Container.get(SourceControlService).init();
|
||||
await import('@/environments.ee/source-control/source-control.controller.ee');
|
||||
} catch (error) {
|
||||
this.logger.warn(`Source control initialization failed: ${(error as Error).message}`);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user