Pagination Fix

This commit is contained in:
Dave Richer
2023-12-04 14:28:44 -05:00
parent 92c8b54f85
commit ee8cbe33c4
3 changed files with 183 additions and 152 deletions

View File

@@ -5,13 +5,13 @@ export const QUERY_ALL_ACTIVE_JOBS_PAGINATED = gql`
$offset: Int
$limit: Int
$order: [jobs_order_by!]
$statuses: [String!]!,
$statusFilters: [String!]!,
$isConverted: Boolean
) {
jobs(
offset: $offset
limit: $limit
where: { status: { _in: $statuses }, converted: { _eq: $isConverted } }
where: { status: { _in: $statusFilters }, converted: { _eq: $isConverted } }
order_by: $order
) {
iouparent
@@ -52,7 +52,7 @@ export const QUERY_ALL_ACTIVE_JOBS_PAGINATED = gql`
est_ct_fn
est_ct_ln
}
jobs_aggregate(where: { status: { _in: $statuses } }) {
jobs_aggregate(where: { status: { _in: $statusFilters } }) {
aggregate {
count(distinct: true)
}