@tomei/sso 0.45.0 → 0.45.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.45.0",
3
+ "version": "0.45.2",
4
4
  "description": "Tomei SSO Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1947,6 +1947,7 @@ export class Group extends TreeNodeBase<Group> {
1947
1947
  include: [
1948
1948
  {
1949
1949
  model: UserModel,
1950
+ as: 'UserId',
1950
1951
  attributes: ['UserId', 'FullName'],
1951
1952
  },
1952
1953
  ],
@@ -15,6 +15,7 @@ import UserGroupModel from './user-group.entity';
15
15
  import GroupPrivilegeModel from './group-privilege.entity';
16
16
  import GroupObjectPrivilegeModel from './group-object-privilege.entity';
17
17
  import GroupSystemAccessModel from './group-system-access.entity';
18
+ import GroupReportingUserModel from './group-reporting-user.entity';
18
19
 
19
20
  @Table({
20
21
  tableName: 'sso_Group',
@@ -120,4 +121,7 @@ export default class GroupModel extends Model {
120
121
 
121
122
  @HasMany(() => GroupSystemAccessModel)
122
123
  GroupSystemAccesses: GroupSystemAccessModel[];
124
+
125
+ @HasMany(() => GroupReportingUserModel)
126
+ GroupReportingUsers: GroupReportingUserModel[];
123
127
  }