Skip to content

Commit 201b33a

Browse files
authored
Fix direct allocation query (#3575)
1 parent 7604f9a commit 201b33a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/data-layer/src/queries.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,11 +841,15 @@ export const getDirectDonationsByProjectId = gql`
841841
query getDirectDonationsByProjectId($projectId: String!, $chainIds: [Int!]!) {
842842
rounds(
843843
filter: {
844-
strategyId: { equalTo: "0x4cd0051913234cdd7d165b208851240d334786d6e5afbb4d0eec203515a9c6f3" }
844+
strategyId: {
845+
equalTo: "0x4cd0051913234cdd7d165b208851240d334786d6e5afbb4d0eec203515a9c6f3"
846+
}
845847
chainId: { in: $chainIds }
846-
donations: { every: { projectId: { equalTo: $projectId } } }
847848
}
848849
) {
850+
donations(filter: { projectId: { equalTo: $projectId } }) {
851+
id
852+
}
849853
id
850854
uniqueDonorsCount
851855
totalAmountDonatedInUsd

0 commit comments

Comments
 (0)