Skip to content

Commit

Permalink
index memberships by id instead of userId
Browse files Browse the repository at this point in the history
Co-authored-by: David Code Howard <[email protected]>
  • Loading branch information
shrouxm and david-code authored Oct 13, 2023
1 parent 4b6d7f3 commit 30f3486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/project/projectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const collapseProjectMemberships = (
const memberships = collapseEdges(connection).map(collapseProjectMembership);
return {
memberships: Object.fromEntries(
memberships.map(({ membership }) => [membership.userId, membership]),
memberships.map(({ membership }) => [membership.id, membership]),
),
users: Object.fromEntries(memberships.map(({ user }) => [user.id, user])),
};
Expand Down

0 comments on commit 30f3486

Please sign in to comment.