fix bugs
This commit is contained in:
@@ -10,6 +10,7 @@ import { User } from '../users/entities/user.entity';
|
||||
import { Delivery } from '../delivery/entities/delivery.entity';
|
||||
import { Order } from '../orders/entities/order.entity';
|
||||
import { AuthModule } from '../auth/auth.module';
|
||||
import { UserModule } from '../users/user.module';
|
||||
import { JwtModule } from '@nestjs/jwt';
|
||||
import { UtilsModule } from '../utils/utils.module';
|
||||
import { CouponModule } from '../coupons/coupon.module';
|
||||
@@ -34,6 +35,7 @@ import { WalletTransaction } from '../users/entities/wallet-transaction.entity';
|
||||
Order,
|
||||
]),
|
||||
AuthModule,
|
||||
UserModule,
|
||||
JwtModule,
|
||||
UtilsModule,
|
||||
CouponModule,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Entity, Index, Property, OneToMany, Collection, Cascade, ManyToOne, Enum } from '@mikro-orm/core';
|
||||
import { Entity, Index, Property, ManyToOne, Enum } from '@mikro-orm/core';
|
||||
import { BaseEntity } from '../../../common/entities/base.entity';
|
||||
import { User } from './user.entity';
|
||||
import { WalletTransactionReason, WalletTransactionType } from '../interface/wallet';
|
||||
@@ -12,7 +12,7 @@ export class WalletTransaction extends BaseEntity {
|
||||
@ManyToOne(() => User)
|
||||
user!: User;
|
||||
|
||||
@ManyToOne(() => User)
|
||||
@ManyToOne(() => Restaurant)
|
||||
restaurant!: Restaurant;
|
||||
|
||||
@Property({ type: 'decimal', precision: 10, scale: 0 })
|
||||
|
||||
@@ -21,7 +21,7 @@ import { PointTransaction } from './entities/point-transaction.entity';
|
||||
WalletTransaction,
|
||||
PointTransaction
|
||||
]),
|
||||
JwtModule, RestaurantsModule, WalletTransactionRepository],
|
||||
JwtModule, RestaurantsModule],
|
||||
exports: [UserService, WalletService, UserRepository, WalletTransactionRepository],
|
||||
})
|
||||
export class UserModule { }
|
||||
|
||||
Reference in New Issue
Block a user