Skip to content

Commit

Permalink
fix: Added enrollMethod and membership type to membership list extract
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Nov 1, 2023
1 parent b1b3281 commit f883570
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lodash": "^4.17.21",
"react": "^18.2.0",
"react-redux": "^8.1.3",
"terraso-backend": "github:techmatters/terraso-backend#8048c79aad9a5f45e087dd0346271f5b9d59d3c9",
"terraso-backend": "github:techmatters/terraso-backend#6fe8dc416d7770969f0cca89834ecbf228d25a96",
"uuid": "^9.0.1"
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/collaboration/membershipsFragments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const collaborationMembershipsInfo = /* GraphQL */ `
fragment collaborationMembershipsInfo on CollaborationMembershipListNode {
membershipType
membershipsCount
enrollMethod
memberships(first: 5, membershipStatus: APPROVED) {
totalCount
edges {
Expand Down
2 changes: 2 additions & 0 deletions src/collaboration/membershipsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export const extractMembershipsInfo = (
pendingCount: membershipList?.pending?.totalCount,
accountMembership: extractAccountMembership(membershipList),
membershipsSample: extractMemberships(membershipList),
enrollMethod: membershipList?.enrollMethod,
membershipType: membershipList?.membershipType,
});

export const extractMembership = (
Expand Down

0 comments on commit f883570

Please sign in to comment.