rerfactor user wallet ans user points
This commit is contained in:
@@ -7,17 +7,21 @@ import { UserAddress } from './entities/user-address.entity';
|
||||
import { JwtModule } from '@nestjs/jwt';
|
||||
import { UserRepository } from './repositories/user.repository';
|
||||
import { RestaurantsModule } from '../restaurants/restaurants.module';
|
||||
import { UserWalletRepository } from './repositories/user-wallet.repository';
|
||||
import { WalletTransactionRepository } from './repositories/wallet-transaction.repository';
|
||||
import { WalletService } from './providers/wallet.service';
|
||||
import { UserWallet } from './entities/user-wallet.entity';
|
||||
import { WalletTransaction } from './entities/wallet-transaction.entity';
|
||||
import { PointTransaction } from './entities/point-transaction.entity';
|
||||
|
||||
@Module({
|
||||
providers: [UserService, WalletService, UserRepository, UserWalletRepository, WalletTransactionRepository],
|
||||
providers: [UserService, WalletService, UserRepository, WalletTransactionRepository],
|
||||
controllers: [UsersController],
|
||||
imports: [MikroOrmModule.forFeature([User, UserAddress, UserWallet,
|
||||
WalletTransaction]), JwtModule, RestaurantsModule],
|
||||
exports: [UserService, WalletService, UserRepository, UserWalletRepository, WalletTransactionRepository],
|
||||
imports: [MikroOrmModule.forFeature([
|
||||
User,
|
||||
UserAddress,
|
||||
WalletTransaction,
|
||||
PointTransaction
|
||||
]),
|
||||
JwtModule, RestaurantsModule, WalletTransactionRepository],
|
||||
exports: [UserService, WalletService, UserRepository, WalletTransactionRepository],
|
||||
})
|
||||
export class UserModule { }
|
||||
|
||||
Reference in New Issue
Block a user