Skip to content

Commit

Permalink
USR API read v5 #2
Browse files Browse the repository at this point in the history
  • Loading branch information
aAmitSengar committed May 12, 2022
1 parent a468d24 commit 0a8eb2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/init.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export class InitService {
userPidProfile = await this.http
.get<any>(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()
Expand Down

0 comments on commit 0a8eb2f

Please sign in to comment.