Skip to content

Commit e42f7c8

Browse files
authored
[server-ee] Fix wrong injection of GitHupApp (#3088)
1 parent fd46a83 commit e42f7c8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

components/server/ee/src/container-module.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import { WorkspaceFactoryEE } from "./workspace/workspace-factory";
3636
import { MonitoringEndpointsAppEE } from "./monitoring-endpoint-ee";
3737
import { MonitoringEndpointsApp } from "../../src/monitoring-endpoints";
3838
import { WorkspaceHealthMonitoring } from "./workspace/workspace-health-monitoring";
39-
import { Env } from "../../src/env";
4039

4140
export const productionEEContainerModule = new ContainerModule((bind, unbind, isBound, rebind) => {
4241
rebind(Server).to(ServerEE).inSingletonScope();
@@ -53,11 +52,7 @@ export const productionEEContainerModule = new ContainerModule((bind, unbind, is
5352
bind(PrebuildRateLimiter).toSelf().inSingletonScope();
5453
bind(PrebuildQueueMaintainer).toSelf().inSingletonScope();
5554
bind(IPrefixContextParser).to(StartPrebuildContextParser).inSingletonScope();
56-
bind(GithubApp).toDynamicValue(ctx => {
57-
const env = ctx.container.get<Env>(Env);
58-
const prebuildStatusMaintainer = ctx.container.get<PrebuildStatusMaintainer>(PrebuildStatusMaintainer);
59-
return new GithubApp(env, prebuildStatusMaintainer);
60-
}).inSingletonScope();
55+
bind(GithubApp).toSelf().inSingletonScope();
6156
bind(GithubAppRules).toSelf().inSingletonScope();
6257
bind(PrebuildStatusMaintainer).toSelf().inSingletonScope();
6358
bind(GitLabApp).toSelf().inSingletonScope();

0 commit comments

Comments
 (0)