mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +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
|
// Source Control
|
||||||
// ----------------------------------------
|
// ----------------------------------------
|
||||||
|
|
||||||
if (this.licenseState.isSourceControlLicensed()) {
|
try {
|
||||||
try {
|
const { SourceControlService } = await import(
|
||||||
const { SourceControlService } = await import(
|
'@/environments.ee/source-control/source-control.service.ee'
|
||||||
'@/environments.ee/source-control/source-control.service.ee'
|
);
|
||||||
);
|
await Container.get(SourceControlService).init();
|
||||||
await Container.get(SourceControlService).init();
|
await import('@/environments.ee/source-control/source-control.controller.ee');
|
||||||
await import('@/environments.ee/source-control/source-control.controller.ee');
|
} catch (error) {
|
||||||
} catch (error) {
|
this.logger.warn(`Source control initialization failed: ${(error as Error).message}`);
|
||||||
this.logger.warn(`Source control initialization failed: ${(error as Error).message}`);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user