From 84aeec281abaa1015bb0dcf25b5310c887f6ca73 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 2 Feb 2023 09:29:59 +0100 Subject: [PATCH] change query listAllContribution add statusFilter --- admin/src/graphql/listAllContributions.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/admin/src/graphql/listAllContributions.js b/admin/src/graphql/listAllContributions.js index 1aacc4824..c9ad60441 100644 --- a/admin/src/graphql/listAllContributions.js +++ b/admin/src/graphql/listAllContributions.js @@ -1,8 +1,18 @@ import gql from 'graphql-tag' export const listAllContributions = gql` - query ($currentPage: Int = 1, $pageSize: Int = 25, $order: Order = DESC) { - listAllContributions(currentPage: $currentPage, pageSize: $pageSize, order: $order) { + query ( + $currentPage: Int = 1 + $pageSize: Int = 5 + $order: Order = DESC + $statusFilter: [ContributionStatus!] + ) { + listAllContributions( + currentPage: $currentPage + pageSize: $pageSize + order: $order + statusFilter: $statusFilter + ) { contributionCount contributionList { id