Skip to content

Commit

Permalink
fix: members
Browse files Browse the repository at this point in the history
  • Loading branch information
josemarinas committed May 20, 2024
1 parent d916973 commit 6c61514
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/services/aragon-sdk/queryHelpers/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export const QueryMultisigProposal = gql`
isSignaling
approvals(first: 1000) {
id
approver {
address
}
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/services/aragon-sdk/queryHelpers/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export const QueryMultisigProposals = gql`
creationBlockNumber
approvals {
id
approver {
address
}
}
actions {
to
Expand Down
4 changes: 1 addition & 3 deletions src/services/aragon-sdk/selectors/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,7 @@ export function toMultisigProposal(
}),
status: computeMultisigProposalStatus(proposal),
// eslint-disable-next-line @typescript-eslint/no-explicit-any
approvals: proposal.approvals.map((approver: any) =>
approver.id.slice(0, 42)
),
approvals: proposal.approvals.map(approval => approval.approver.address),
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/services/aragon-sdk/selectors/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function toMultisigProposalListItem(
title: metadata.title,
summary: metadata.summary,
},
approvals: proposal.approvals.map(approval => approval.id.slice(0, 42)),
approvals: proposal.approvals.map(approval => approval.approver.address),
actions: proposal.actions.map((action: SubgraphAction): DaoAction => {
return {
data: hexToBytes(action.data),
Expand Down
2 changes: 1 addition & 1 deletion src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ export type SubgraphMultisigProposalBase = SubgraphProposalBase & {
plugin: SubgraphMultisigVotingSettings;
minApprovals: number;
approvalReached: boolean;
approvals: {id: string}[];
approvals: {id: string, approver: { address: string} }[];

Check failure on line 732 in src/utils/types.ts

View workflow job for this annotation

GitHub Actions / build-and-test

Replace `,·approver:·{·address:·string}·` with `;·approver:·{address:·string}`
};

export type SubgraphMultisigProposalListItem = SubgraphMultisigProposalBase;
Expand Down

0 comments on commit 6c61514

Please sign in to comment.