rez_core 6.5.36 → 6.5.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "6.5.36",
3
+ "version": "6.5.37",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -12,7 +12,7 @@ import { plainToInstance } from 'class-transformer';
12
12
  import { UpdateUserDto } from '../dto/update-user.dto';
13
13
  import { EnterpriseRepository } from 'src/module/enterprise/repository/enterprise.repository';
14
14
  import { StatusConstant } from '../../../constant/status.constant';
15
- import { RoleService } from './role.service';
15
+ import { RoleRepository } from '../repository/role.repository';
16
16
 
17
17
  @Injectable()
18
18
  @ActionHandler('User')
@@ -20,7 +20,7 @@ export class UserService {
20
20
  constructor(
21
21
  private userRepository: UserRepository,
22
22
  private userRoleMappingService: UserRoleMappingService,
23
- private roleService: RoleService,
23
+ private roleRepo: RoleRepository,
24
24
  private configService: ConfigService,
25
25
  private readonly enterpriseRepository: EnterpriseRepository,
26
26
  ) {
@@ -127,7 +127,7 @@ export class UserService {
127
127
  for (const i in userRoleMappings) {
128
128
  const userRoleMapping = userRoleMappings[i];
129
129
  const roleId = userRoleMapping.role_id;
130
- const role = await this.roleService.findById(roleId);
130
+ const role = await this.roleRepo.findById(roleId);
131
131
  roles.push(role);
132
132
  }
133
133
  userDto.roles = roles;
@@ -223,7 +223,7 @@ export class UserService {
223
223
  async findByEmailId(
224
224
  email_id: string,
225
225
  enterprise_id?: number,
226
- getLastApp?: boolean
226
+ getLastApp?: boolean,
227
227
  ): Promise<UserData | null> {
228
228
  return await this.userRepository.findByEmailId(email_id, enterprise_id, getLastApp);
229
229
  }