@tomei/sso 0.42.0 → 0.42.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/group-reporting-user/group-reporting-user.js +1 -1
- package/dist/src/components/group-reporting-user/group-reporting-user.js.map +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/index.js +1 -0
- package/dist/src/components/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/group-reporting-user/group-reporting-user.ts +7 -2
- package/src/components/index.ts +1 -0
package/package.json
CHANGED
@@ -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> {
|
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
|
-
'
|
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(
|