chayns-api 1.0.61 → 1.0.62

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.
@@ -45,6 +45,14 @@ class AppWrapper {
45
45
  // ignore
46
46
  }
47
47
  }
48
+ let userId = AppUser.TobitUserID;
49
+ if (typeof userId === 'string') {
50
+ try {
51
+ userId = Number.parseInt(userId, 10);
52
+ } catch {
53
+ // ignore
54
+ }
55
+ }
48
56
  return {
49
57
  device: (0, _deviceHelper.default)(navigator.userAgent, 'image/webp'),
50
58
  environment: {
@@ -89,7 +97,7 @@ class AppWrapper {
89
97
  firstName: AppUser.FirstName,
90
98
  lastName: AppUser.LastName,
91
99
  gender: _IChaynsReact.Gender.Unknown,
92
- userId: AppUser.TobitUserID,
100
+ userId: userId,
93
101
  personId: AppUser.PersonID,
94
102
  uacGroups: []
95
103
  },
@@ -37,6 +37,14 @@ export class AppWrapper {
37
37
  // ignore
38
38
  }
39
39
  }
40
+ let userId = AppUser.TobitUserID;
41
+ if (typeof userId === 'string') {
42
+ try {
43
+ userId = Number.parseInt(userId, 10);
44
+ } catch {
45
+ // ignore
46
+ }
47
+ }
40
48
  return {
41
49
  device: getDeviceInfo(navigator.userAgent, 'image/webp'),
42
50
  environment: {
@@ -81,7 +89,7 @@ export class AppWrapper {
81
89
  firstName: AppUser.FirstName,
82
90
  lastName: AppUser.LastName,
83
91
  gender: Gender.Unknown,
84
- userId: AppUser.TobitUserID,
92
+ userId: userId,
85
93
  personId: AppUser.PersonID,
86
94
  uacGroups: []
87
95
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",