@tomei/sso 0.38.1 → 0.38.2

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.1",
3
+ "version": "0.38.2",
4
4
  "description": "Tomei SSO Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -181,7 +181,7 @@ export class Group extends TreeNodeBase<Group> {
181
181
 
182
182
  async setParent(parent: Group, dbTransaction?: any): Promise<void> {
183
183
  this.parent = parent;
184
- await this.getPath(dbTransaction);
184
+ await this.updatePath(dbTransaction);
185
185
  }
186
186
 
187
187
  async getPathDetail(dbTransaction?: any): Promise<Group[]> {
@@ -527,7 +527,7 @@ export class Group extends TreeNodeBase<Group> {
527
527
  }
528
528
 
529
529
  if (isPathChanged) {
530
- await this.updateChildrenPath(oldGroupCode, dbTransaction);
530
+ await currentGroup.updateChildrenPath(oldGroupCode, dbTransaction);
531
531
  }
532
532
 
533
533
  currentGroup.Name = group?.Name || currentGroup.Name;
@@ -555,6 +555,7 @@ export class Group extends TreeNodeBase<Group> {
555
555
  InheritParentPrivilegeYN: currentGroup.InheritParentPrivilegeYN,
556
556
  InheritParentSystemAccessYN: currentGroup.InheritParentSystemAccessYN,
557
557
  Status: currentGroup.Status,
558
+ Path: currentGroup._Path,
558
559
  UpdatedById: currentGroup._UpdatedById,
559
560
  UpdatedAt: currentGroup._UpdatedAt,
560
561
  },