@tomei/sso 0.48.0 → 0.48.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.48.0",
3
+ "version": "0.48.2",
4
4
  "description": "Tomei SSO Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -307,6 +307,7 @@ export class UserGroup extends ObjectBase {
307
307
  dbTransaction: any,
308
308
  ): Promise<
309
309
  {
310
+ UserGroupId: number;
310
311
  GroupCode: string;
311
312
  GroupName: string;
312
313
  InheritGroupSystemAccessYN: string;
@@ -384,6 +385,7 @@ export class UserGroup extends ObjectBase {
384
385
  transaction: dbTransaction,
385
386
  });
386
387
  const result: {
388
+ UserGroupId: number;
387
389
  GroupCode: string;
388
390
  GroupName: string;
389
391
  InheritGroupSystemAccessYN: string;
@@ -425,6 +427,7 @@ export class UserGroup extends ObjectBase {
425
427
  // UpdatedAt
426
428
  // For groups where InheritGroupSystemAccessYN = 'N', Systems will be an empty array.
427
429
  const groupData = {
430
+ UserGroupId: userGroup.UserGroupId,
428
431
  GroupCode: userGroup.GroupCode,
429
432
  GroupName: userGroup.Group.Name,
430
433
  InheritGroupSystemAccessYN: userGroup.InheritGroupSystemAccessYN,
@@ -13,6 +13,7 @@ import { User as UserLogin } from '../login-user/user';
13
13
  import { SystemPrivilegeRepository } from '../system-privilege/system-privilege.repository';
14
14
  import { Op } from 'sequelize';
15
15
  import { ActionEnum, Activity } from '@tomei/activity-history';
16
+ import { UserGroup } from 'components/user-group';
16
17
 
17
18
  export class UserPrivilege extends ObjectBase {
18
19
  TableName = 'sso_UserPrivilege';
@@ -252,6 +253,7 @@ export class UserPrivilege extends ObjectBase {
252
253
  inheritPrivilegeYN = 'N';
253
254
  }
254
255
  return {
256
+ UserGroupId: groups.UserGroupId,
255
257
  GroupCode: groups.GroupCode,
256
258
  GroupName: groups.Group.Name,
257
259
  InheritPrivilegeYN: inheritPrivilegeYN,
@@ -275,6 +277,7 @@ export class UserPrivilege extends ObjectBase {
275
277
  for (let i = 0; i < listOfGroups.length; i++) {
276
278
  const group = await listOfGroups[i];
277
279
  const data = {
280
+ UserGroupId: group.UserGroupId,
278
281
  GroupCode: group.GroupCode,
279
282
  GroupName: group.GroupName,
280
283
  InheritPrivilegeYN: group.InheritPrivilegeYN,