@tomei/sso 0.38.2 → 0.38.5

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/sso",
3
- "version": "0.38.2",
3
+ "version": "0.38.5",
4
4
  "description": "Tomei SSO Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -486,7 +486,7 @@ export class Group extends TreeNodeBase<Group> {
486
486
  ParentGroupCode: currentGroup.ParentGroupCode,
487
487
  InheritParentPrivilegeYN: currentGroup.InheritParentPrivilegeYN,
488
488
  InheritParentSystemAccessYN: currentGroup.InheritParentSystemAccessYN,
489
- Path: this.Path,
489
+ Path: currentGroup.Path,
490
490
  Status: currentGroup.Status,
491
491
  CreatedById: currentGroup._CreatedById,
492
492
  UpdatedById: currentGroup._UpdatedById,
@@ -576,6 +576,7 @@ export class Group extends TreeNodeBase<Group> {
576
576
  InheritParentPrivilegeYN: currentGroup.InheritParentPrivilegeYN,
577
577
  InheritParentSystemAccessYN: currentGroup.InheritParentSystemAccessYN,
578
578
  Status: currentGroup.Status,
579
+ Path: currentGroup._Path,
579
580
  CreatedById: currentGroup._CreatedById,
580
581
  UpdatedById: currentGroup._UpdatedById,
581
582
  CreatedAt: currentGroup._CreatedAt,
@@ -12,19 +12,13 @@ export class GroupPrivilegeRepository
12
12
 
13
13
  async delete(
14
14
  GroupCode: string,
15
- PrivilegeCode: string,
16
- SystemCode: string,
15
+ SystemPrivilegeId: string,
17
16
  dbTransaction?: any,
18
17
  ) {
19
18
  try {
20
19
  const data = await GroupPrivilegeModel.findOne({
21
- where: { GroupCode, PrivilegeCode },
22
- include: [
23
- {
24
- model: SystemPrivilegeModel,
25
- where: { SystemCode },
26
- },
27
- ],
20
+ where: { GroupCode, SystemPrivilegeId },
21
+ transaction: dbTransaction,
28
22
  });
29
23
  data.destroy({ transaction: dbTransaction });
30
24
  return data;
@@ -36,7 +36,7 @@ export default class GroupObjectPrivilegeModel extends Model {
36
36
 
37
37
  @ForeignKey(() => SystemPrivilegeModel)
38
38
  @Column({
39
- type: DataType.STRING(10),
39
+ type: DataType.STRING(30),
40
40
  allowNull: false,
41
41
  })
42
42
  SystemPrivilegeId: string;
@@ -35,7 +35,7 @@ export default class GroupPrivilegeModel extends Model {
35
35
 
36
36
  @ForeignKey(() => SystemPrivilegeModel)
37
37
  @Column({
38
- type: DataType.STRING(10),
38
+ type: DataType.STRING(30),
39
39
  allowNull: false,
40
40
  })
41
41
  SystemPrivilegeId: string;
@@ -35,7 +35,7 @@ export default class UserObjectPrivilegeModel extends Model {
35
35
 
36
36
  @ForeignKey(() => SystemPrivilegeModel)
37
37
  @Column({
38
- type: DataType.STRING(10),
38
+ type: DataType.STRING(30),
39
39
  allowNull: false,
40
40
  })
41
41
  SystemPrivilegeId: string;
@@ -36,7 +36,7 @@ export default class UserPrivilegeModel extends Model {
36
36
  @ForeignKey(() => SystemPrivilegeModel)
37
37
  @Column({
38
38
  primaryKey: true,
39
- type: DataType.STRING(10),
39
+ type: DataType.STRING(30),
40
40
  allowNull: false,
41
41
  })
42
42
  SystemPrivilegeId: string;