@tomei/sso 0.42.0 → 0.42.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.42.0",
3
+ "version": "0.42.2",
4
4
  "description": "Tomei SSO Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -90,7 +90,8 @@ export class GroupReportingUser extends ObjectBase {
90
90
  userId: number, //The ID of the user to be added to the group.
91
91
  rank: number, //The rank to be assigned to the user in the group.
92
92
  status: 'Active' | 'Inactive', //The initial status of the user in the group.
93
- ): Promise<GroupReportingUser> { // Returns a GroupReportingUser instance representing the newly created record.
93
+ ): Promise<GroupReportingUser> {
94
+ // Returns a GroupReportingUser instance representing the newly created record.
94
95
  try {
95
96
  //Creates a new group reporting user entry in the sso_GroupReportingUser table.
96
97
 
@@ -114,7 +115,7 @@ export class GroupReportingUser extends ObjectBase {
114
115
  throw new ClassError(
115
116
  'GroupReportingUser',
116
117
  'GroupReportingUserErrMsg02',
117
- 'User does not have the privilege to create Group Reporting User',
118
+ 'Insufficient privileges to add a user to the group',
118
119
  );
119
120
  }
120
121
 
@@ -144,6 +145,8 @@ export class GroupReportingUser extends ObjectBase {
144
145
  this.Status = status;
145
146
  this._CreatedById = loginUser.UserId;
146
147
  this._CreatedAt = new Date();
148
+ this._UpdatedAt = new Date();
149
+ this._UpdatedById = loginUser.UserId;
147
150
 
148
151
  const entityValueAfter: any = {
149
152
  GroupCode: groupCode,
@@ -152,6 +155,8 @@ export class GroupReportingUser extends ObjectBase {
152
155
  Status: status,
153
156
  CreatedById: loginUser.UserId,
154
157
  CreatedAt: this._CreatedAt,
158
+ UpdatedById: loginUser.UserId,
159
+ UpdatedAt: this._UpdatedAt,
155
160
  };
156
161
 
157
162
  const newGroupReportingUser = await GroupReportingUser._Repo.create(
@@ -14,5 +14,6 @@ export * from './group-object-privilege';
14
14
  export * from './system-privilege';
15
15
  export * from './group';
16
16
  export * from './api-key';
17
+ export * from './group-reporting-user';
17
18
 
18
19
  //test ci