diff --git a/components/server/ee/src/container-module.ts b/components/server/ee/src/container-module.ts index a7202f9cca803e..9f72ff85cf0a02 100644 --- a/components/server/ee/src/container-module.ts +++ b/components/server/ee/src/container-module.ts @@ -36,7 +36,6 @@ import { WorkspaceFactoryEE } from "./workspace/workspace-factory"; import { MonitoringEndpointsAppEE } from "./monitoring-endpoint-ee"; import { MonitoringEndpointsApp } from "../../src/monitoring-endpoints"; import { WorkspaceHealthMonitoring } from "./workspace/workspace-health-monitoring"; -import { Env } from "../../src/env"; export const productionEEContainerModule = new ContainerModule((bind, unbind, isBound, rebind) => { rebind(Server).to(ServerEE).inSingletonScope(); @@ -53,11 +52,7 @@ export const productionEEContainerModule = new ContainerModule((bind, unbind, is bind(PrebuildRateLimiter).toSelf().inSingletonScope(); bind(PrebuildQueueMaintainer).toSelf().inSingletonScope(); bind(IPrefixContextParser).to(StartPrebuildContextParser).inSingletonScope(); - bind(GithubApp).toDynamicValue(ctx => { - const env = ctx.container.get(Env); - const prebuildStatusMaintainer = ctx.container.get(PrebuildStatusMaintainer); - return new GithubApp(env, prebuildStatusMaintainer); - }).inSingletonScope(); + bind(GithubApp).toSelf().inSingletonScope(); bind(GithubAppRules).toSelf().inSingletonScope(); bind(PrebuildStatusMaintainer).toSelf().inSingletonScope(); bind(GitLabApp).toSelf().inSingletonScope();