@tomei/sso 0.28.5 → 0.28.6

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.28.5",
3
+ "version": "0.28.6",
4
4
  "description": "Tomei SSO Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -369,9 +369,9 @@ export class LoginUser extends LoginUserBase {
369
369
  const userAttr: IUserAttr = {
370
370
  UserId: user.UserId,
371
371
  UserName: user.UserName,
372
- FullName: user.Staff.FullName || null,
373
- IDNo: user.Staff.IdNo || null,
374
- ContactNo: user.Staff.Mobile || null,
372
+ FullName: user?.Staff?.FullName || null,
373
+ IDNo: user?.Staff?.IdNo || null,
374
+ ContactNo: user?.Staff?.Mobile || null,
375
375
  Email: user.Email,
376
376
  Password: user.Password,
377
377
  Status: user.Status,
@@ -389,7 +389,7 @@ export class LoginUser extends LoginUserBase {
389
389
  CreatedAt: user.CreatedAt,
390
390
  UpdatedById: user.UpdatedById,
391
391
  UpdatedAt: user.UpdatedAt,
392
- staffs: user.Staff || null,
392
+ staffs: user?.Staff || null,
393
393
  };
394
394
 
395
395
  this.UserId = userAttr.UserId;