Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
🐛 Fix bug with detailed membership endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed May 12, 2019
1 parent 1e457da commit 9d61258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crud/membership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 9d61258

Please sign in to comment.