@@ -21,11 +21,6 @@ import { OneTimeSecretDB } from "./one-time-secret-db";
2121import { TypeORMAppInstallationDBImpl } from "./typeorm/app-installation-db-impl" ;
2222import { AppInstallationDB } from "./app-installation-db" ;
2323import { TypeORMOneTimeSecretDBImpl } from "./typeorm/one-time-secret-db-impl" ;
24- import { PendingGithubEventDB , TransactionalPendingGithubEventDBFactory } from "./pending-github-event-db" ;
25- import {
26- TransactionalPendingGithubEventDBImpl ,
27- TypeORMPendingGithubEventDBImpl ,
28- } from "./typeorm/pending-github-event-db-impl" ;
2924import { GitpodTableDescriptionProvider , TableDescriptionProvider } from "./tables" ;
3025import { PeriodicDbDeleter } from "./periodic-deleter" ;
3126import { CodeSyncResourceDB } from "./typeorm/code-sync-resource-db" ;
@@ -35,22 +30,15 @@ import { WorkspaceClusterDB } from "./workspace-cluster-db";
3530import { AuthCodeRepositoryDB } from "./typeorm/auth-code-repository-db" ;
3631import { AuthProviderEntryDB } from "./auth-provider-entry-db" ;
3732import { AuthProviderEntryDBImpl } from "./typeorm/auth-provider-entry-db-impl" ;
38- import { TeamSubscriptionDB } from "./team-subscription-db" ;
39- import { AccountingDB , TransactionalAccountingDBFactory } from "./accounting-db" ;
4033import { EmailDomainFilterDB } from "./email-domain-filter-db" ;
4134import { EmailDomainFilterDBImpl } from "./typeorm/email-domain-filter-db-impl" ;
42- import { TeamSubscriptionDBImpl } from "./typeorm/team-subscription-db-impl" ;
43- import { TransactionalAccountingDBImpl , TypeORMAccountingDBImpl } from "./typeorm/accounting-db-impl" ;
4435import { TeamDB } from "./team-db" ;
4536import { TeamDBImpl } from "./typeorm/team-db-impl" ;
4637import { ProjectDB } from "./project-db" ;
4738import { ProjectDBImpl } from "./typeorm/project-db-impl" ;
4839import { PersonalAccessTokenDB } from "./personal-access-token-db" ;
49- import { EntityManager } from "typeorm" ;
5040import { TypeORMInstallationAdminImpl } from "./typeorm/installation-admin-db-impl" ;
5141import { InstallationAdminDB } from "./installation-admin-db" ;
52- import { TeamSubscription2DB } from "./team-subscription-2-db" ;
53- import { TeamSubscription2DBImpl } from "./typeorm/team-subscription-2-db-impl" ;
5442import { TypeORMBlockedRepositoryDBImpl } from "./typeorm/blocked-repository-db-impl" ;
5543import { BlockedRepositoryDB } from "./blocked-repository-db" ;
5644import { WebhookEventDB } from "./webhook-event-db" ;
@@ -96,14 +84,6 @@ export const dbContainerModule = new ContainerModule((bind, unbind, isBound, reb
9684 bind ( OneTimeSecretDB ) . toService ( TypeORMOneTimeSecretDBImpl ) ;
9785 bindDbWithTracing ( TracedOneTimeSecretDB , bind , OneTimeSecretDB ) . inSingletonScope ( ) ;
9886
99- bind ( TypeORMPendingGithubEventDBImpl ) . toSelf ( ) . inSingletonScope ( ) ;
100- bind ( PendingGithubEventDB ) . toService ( TypeORMPendingGithubEventDBImpl ) ;
101- bind ( TransactionalPendingGithubEventDBFactory ) . toFactory ( ( ctx ) => {
102- return ( manager : EntityManager ) => {
103- return new TransactionalPendingGithubEventDBImpl ( manager ) ;
104- } ;
105- } ) ;
106-
10787 encryptionModule ( bind , unbind , isBound , rebind ) ;
10888 bind ( KeyProviderConfig )
10989 . toDynamicValue ( ( ctx ) => {
@@ -135,14 +115,6 @@ export const dbContainerModule = new ContainerModule((bind, unbind, isBound, reb
135115 bind ( PersonalAccessTokenDB ) . toService ( PersonalAccessTokenDBImpl ) ;
136116
137117 // com concerns
138- bind ( AccountingDB ) . to ( TypeORMAccountingDBImpl ) . inSingletonScope ( ) ;
139- bind ( TransactionalAccountingDBFactory ) . toFactory ( ( ctx ) => {
140- return ( manager : EntityManager ) => {
141- return new TransactionalAccountingDBImpl ( manager ) ;
142- } ;
143- } ) ;
144- bind ( TeamSubscriptionDB ) . to ( TeamSubscriptionDBImpl ) . inSingletonScope ( ) ;
145- bind ( TeamSubscription2DB ) . to ( TeamSubscription2DBImpl ) . inSingletonScope ( ) ;
146118 bind ( EmailDomainFilterDB ) . to ( EmailDomainFilterDBImpl ) . inSingletonScope ( ) ;
147119 bind ( UserToTeamMigrationService ) . toSelf ( ) . inSingletonScope ( ) ;
148120 bind ( WorkspaceOrganizationIdMigration ) . toSelf ( ) . inSingletonScope ( ) ;
0 commit comments