06112602ec
Version the NestJS TDLib gateway with Docker deployment, migrations, automated tests and platform integration documentation while excluding all account sessions, credentials, runtime databases and backups.
22 lines
842 B
TypeScript
22 lines
842 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { TgAccount } from '../../database/entities/tg-account.entity';
|
|
import { TgAccountsService } from './tg-accounts.service';
|
|
import { TgAccountsController } from './tg-accounts.controller';
|
|
import { TdlibModule } from '../tdlib/tdlib.module';
|
|
import { TenantsModule } from '../tenants/tenants.module';
|
|
import { TgAccountProxyBinding } from '../../database/entities/tg-account-proxy-binding.entity';
|
|
import { TgProxy } from '../../database/entities/tg-proxy.entity';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([TgAccount, TgAccountProxyBinding, TgProxy]),
|
|
TdlibModule,
|
|
TenantsModule,
|
|
],
|
|
providers: [TgAccountsService],
|
|
controllers: [TgAccountsController],
|
|
exports: [TgAccountsService],
|
|
})
|
|
export class TgAccountsModule {}
|