fix(core): Initialize source control unconditionally (#16929)

This commit is contained in:
Iván Ovejero
2025-07-03 11:06:23 +02:00
committed by GitHub
parent 5b9897c3a2
commit faea69cbc2

View File

@@ -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 {