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 {}