fix: change the role refrence in database

This commit is contained in:
mahyargdz
2025-01-19 11:55:52 +03:30
parent 58c9bfa912
commit f88ccec546
10 changed files with 119 additions and 14 deletions
+2 -1
View File
@@ -1,13 +1,14 @@
import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { Role } from "./entities/role.entity";
import { User } from "./entities/user.entity";
import { UserRepository } from "./providers/users.repository";
import { UsersService } from "./providers/users.service";
import { UsersController } from "./users.controller";
@Module({
imports: [TypeOrmModule.forFeature([User])],
imports: [TypeOrmModule.forFeature([User, Role])],
providers: [UsersService, UserRepository],
controllers: [UsersController],
exports: [UsersService, TypeOrmModule],