@@ -21,11 +21,6 @@ import { OneTimeSecretDB } from "./one-time-secret-db";
21
21
import { TypeORMAppInstallationDBImpl } from "./typeorm/app-installation-db-impl" ;
22
22
import { AppInstallationDB } from "./app-installation-db" ;
23
23
import { 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" ;
29
24
import { GitpodTableDescriptionProvider , TableDescriptionProvider } from "./tables" ;
30
25
import { PeriodicDbDeleter } from "./periodic-deleter" ;
31
26
import { CodeSyncResourceDB } from "./typeorm/code-sync-resource-db" ;
@@ -35,22 +30,15 @@ import { WorkspaceClusterDB } from "./workspace-cluster-db";
35
30
import { AuthCodeRepositoryDB } from "./typeorm/auth-code-repository-db" ;
36
31
import { AuthProviderEntryDB } from "./auth-provider-entry-db" ;
37
32
import { AuthProviderEntryDBImpl } from "./typeorm/auth-provider-entry-db-impl" ;
38
- import { TeamSubscriptionDB } from "./team-subscription-db" ;
39
- import { AccountingDB , TransactionalAccountingDBFactory } from "./accounting-db" ;
40
33
import { EmailDomainFilterDB } from "./email-domain-filter-db" ;
41
34
import { 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" ;
44
35
import { TeamDB } from "./team-db" ;
45
36
import { TeamDBImpl } from "./typeorm/team-db-impl" ;
46
37
import { ProjectDB } from "./project-db" ;
47
38
import { ProjectDBImpl } from "./typeorm/project-db-impl" ;
48
39
import { PersonalAccessTokenDB } from "./personal-access-token-db" ;
49
- import { EntityManager } from "typeorm" ;
50
40
import { TypeORMInstallationAdminImpl } from "./typeorm/installation-admin-db-impl" ;
51
41
import { InstallationAdminDB } from "./installation-admin-db" ;
52
- import { TeamSubscription2DB } from "./team-subscription-2-db" ;
53
- import { TeamSubscription2DBImpl } from "./typeorm/team-subscription-2-db-impl" ;
54
42
import { TypeORMBlockedRepositoryDBImpl } from "./typeorm/blocked-repository-db-impl" ;
55
43
import { BlockedRepositoryDB } from "./blocked-repository-db" ;
56
44
import { WebhookEventDB } from "./webhook-event-db" ;
@@ -96,14 +84,6 @@ export const dbContainerModule = new ContainerModule((bind, unbind, isBound, reb
96
84
bind ( OneTimeSecretDB ) . toService ( TypeORMOneTimeSecretDBImpl ) ;
97
85
bindDbWithTracing ( TracedOneTimeSecretDB , bind , OneTimeSecretDB ) . inSingletonScope ( ) ;
98
86
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
-
107
87
encryptionModule ( bind , unbind , isBound , rebind ) ;
108
88
bind ( KeyProviderConfig )
109
89
. toDynamicValue ( ( ctx ) => {
@@ -135,14 +115,6 @@ export const dbContainerModule = new ContainerModule((bind, unbind, isBound, reb
135
115
bind ( PersonalAccessTokenDB ) . toService ( PersonalAccessTokenDBImpl ) ;
136
116
137
117
// 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 ( ) ;
146
118
bind ( EmailDomainFilterDB ) . to ( EmailDomainFilterDBImpl ) . inSingletonScope ( ) ;
147
119
bind ( UserToTeamMigrationService ) . toSelf ( ) . inSingletonScope ( ) ;
148
120
bind ( WorkspaceOrganizationIdMigration ) . toSelf ( ) . inSingletonScope ( ) ;
0 commit comments