Skip to content

Commit

Permalink
fix: only retrun active members on Multisig query
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekard0 committed Jul 16, 2024
1 parent 36647d5 commit 0d4826a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/client/src/multisig/internal/client/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
ProposalCreationStepValue,
ProposalQueryParams,
ProposalSortBy,
SubgraphMembers,
} from "../../../client-common";
import { Multisig__factory } from "@aragon/osx-ethers";
import {
Expand Down Expand Up @@ -415,13 +414,13 @@ export class MultisigClientMethods extends ClientCore
sortBy,
};
const name = "Multisig members";
type T = { multisigApprovers: SubgraphMembers };
type T = { multisigApprovers: any };
const { multisigApprovers } = await this.graphql.request<T>({
query,
params,
name,
});
return multisigApprovers.map((member) => member.address);
return multisigApprovers.filter((member: any) => member.isActive).map((member: any) => {member.address});
}

/**
Expand Down

0 comments on commit 0d4826a

Please sign in to comment.