Skip to content

Commit

Permalink
Redact email on /member/<numberNumber> page
Browse files Browse the repository at this point in the history
This rsolves #48
  • Loading branch information
chromy committed Jul 22, 2024
1 parent 80206f8 commit 5816704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/queries/member/construct-view-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const constructViewModel =
isSelf: E.right(memberNumber === user.memberNumber),
member: pipe(
events,
readModels.members.getDetails(memberNumber),
readModels.members.getDetailsAsActor(user)(memberNumber),
E.fromOption(() =>
failureWithStatus('No such member', StatusCodes.NOT_FOUND)()
)
Expand Down

0 comments on commit 5816704

Please sign in to comment.