Skip to content

Commit

Permalink
hotfix userId map
Browse files Browse the repository at this point in the history
  • Loading branch information
AleDore committed Dec 20, 2021
1 parent fd8b680 commit 24d89a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GetImpersonateService/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export function GetImpersonateServiceHandler(
TE.mapLeft(mapApimRestError("Subscription")),
TE.map(subscription => subscription.ownerId),
TE.chainW(chainNullableWithNotFound),
TE.map(ownerId => ownerId.substring(ownerId.lastIndexOf("/"))),
TE.chain(userId =>
pipe(
getUserGroups(
Expand Down

0 comments on commit 24d89a2

Please sign in to comment.