From 58167044182c5f303713d68a8783a8692a0f2ab1 Mon Sep 17 00:00:00 2001 From: Hector Dearman Date: Mon, 22 Jul 2024 22:34:44 +0100 Subject: [PATCH] Redact email on /member/ page This rsolves https://github.com/Makespace/members-app/issues/48 --- src/queries/member/construct-view-model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queries/member/construct-view-model.ts b/src/queries/member/construct-view-model.ts index a19cdf09..9f5c658d 100644 --- a/src/queries/member/construct-view-model.ts +++ b/src/queries/member/construct-view-model.ts @@ -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)() )