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