rez_core 6.5.37 → 6.5.38

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.37",
3
+ "version": "6.5.38",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -10,9 +10,6 @@ export class ModuleAccess {
10
10
  @PrimaryGeneratedColumn()
11
11
  id: number;
12
12
 
13
- @Column({ type: 'varchar', length: 100, nullable: true })
14
- module_code: string;
15
-
16
13
  @Column({ type: 'int', nullable: true })
17
14
  module_id: number;
18
15
 
@@ -1,7 +1,7 @@
1
1
  import { Injectable } from '@nestjs/common';
2
2
  import { UserData } from '../entity/user.entity';
3
3
  import { Role } from '../entity/role.entity';
4
- import { STATUS_ACTIVE, STATUS_INACTIVE } from 'src/constant/global.constant';
4
+ import { STATUS_INACTIVE } from 'src/constant/global.constant';
5
5
  import { RoleRepository } from '../repository/role.repository';
6
6
  import { Repository } from 'typeorm';
7
7
  import { InjectRepository } from '@nestjs/typeorm';
@@ -63,11 +63,11 @@ export class RoleService {
63
63
  const clonedPermissions = sourcePermissions.map((perm) =>
64
64
  this.moduleAccessRepo.create({
65
65
  role_code: savedRole.code,
66
- module_code: perm.module_code,
67
66
  action_type: perm.action_type,
68
67
  access_flag: perm.access_flag,
69
68
  level_type: perm.level_type,
70
69
  appcode: perm.appcode,
70
+ module_id: perm.module_id
71
71
  }),
72
72
  );
73
73
 
@@ -155,7 +155,7 @@ export class RoleService {
155
155
  const clonedPermissions = sourcePermissions.map((perm) =>
156
156
  this.moduleAccessRepo.create({
157
157
  role_code: role.code,
158
- module_code: perm.module_code,
158
+ module_id: perm.module_id,
159
159
  action_type: perm.action_type,
160
160
  access_flag: perm.access_flag,
161
161
  appcode: perm.appcode,