From 0a8eb2f168b61ed51f4646aa559112803cddef5b Mon Sep 17 00:00:00 2001 From: Amit Sengar Date: Thu, 12 May 2022 21:19:40 +0530 Subject: [PATCH] USR API read v5 #2 --- src/app/services/init.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/init.service.ts b/src/app/services/init.service.ts index a2dfb507b..0751dfc72 100755 --- a/src/app/services/init.service.ts +++ b/src/app/services/init.service.ts @@ -260,7 +260,7 @@ export class InitService { userPidProfile = await this.http .get(endpoint.profilePid) .pipe(map((res: any) => { - let roles = _.map(_.get(res, 'result.response.roles'), 'role') + const roles = _.map(_.get(res, 'result.response.roles'), 'role') _.set(res, 'result.response.roles', roles) return _.get(res, 'result.response') })).toPromise()