eh-commons 0.0.2-testing.80 → 0.0.2-testing.82

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eh-commons",
3
3
  "type": "commonjs",
4
- "version": "0.0.2-testing.80",
4
+ "version": "0.0.2-testing.82",
5
5
  "description": "eh-commons",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -41,7 +41,7 @@ export interface IUserScope {
41
41
  export interface IUserSessionData {
42
42
  userId: string;
43
43
  username: string;
44
- fistName: string;
44
+ firstName: string;
45
45
  lastName: string;
46
46
  contacts: IContact[];
47
47
  pid: string;
@@ -139,11 +139,11 @@ export class SessionV2Service {
139
139
  }
140
140
  }
141
141
 
142
- public async readUserClients(userId: string, clientId: string): Promise<ISessionClientData[]> {
142
+ public async readUserClients(userId: string): Promise<ISessionClientData[]> {
143
143
  const key = generateUserClientsKeyword(userId);
144
144
  const response = await this._redisService.get(key);
145
145
  if (!response) {
146
- throw new RESTError('user_clients_not_found', clientId, 400);
146
+ throw new RESTError('user_clients_not_found', userId, 400);
147
147
  }
148
148
 
149
149
  const result: any = JSON.parse(response);