18 lines
751 B
TypeScript
18 lines
751 B
TypeScript
import { Module } from "@nestjs/common";
|
|
import { TypeOrmModule } from "@nestjs/typeorm";
|
|
|
|
import { WalletTransaction } from "./entities/transaction.entity";
|
|
import { Wallet } from "./entities/wallet.entity";
|
|
import { WalletsService } from "./providers/wallets.service";
|
|
import { WalletTransactionsRepository } from "./repositories/wallet-transactions.repository";
|
|
import { WalletsRepository } from "./repositories/wallets.repository";
|
|
import { WalletsController } from "./wallets.controller";
|
|
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([Wallet, WalletTransaction])],
|
|
providers: [WalletsService, WalletsRepository, WalletTransactionsRepository],
|
|
controllers: [WalletsController],
|
|
exports: [WalletsService],
|
|
})
|
|
export class WalletsModule {}
|