diff --git a/src/crud/membership.ts b/src/crud/membership.ts index 54bcda613..c98ec5f5e 100644 --- a/src/crud/membership.ts +++ b/src/crud/membership.ts @@ -139,7 +139,7 @@ export const getMembershipDetailed = async (id: number) => { if (!membership || !membership.id) throw new Error(ErrorCode.MEMBERSHIP_NOT_FOUND); membership.organization = await getOrganization(membership.organizationId); - membership.user = await getUser(membership.organizationId); + membership.user = await getUser(membership.userId); return membership; };