Fixed searching on all jobs page BOD-81
This commit is contained in:
@@ -694,20 +694,21 @@ export const QUERY_ALL_JOB_FIELDS = gql`
|
||||
|
||||
export const QUERY_ALL_JOBS_PAGINATED = gql`
|
||||
query QUERY_ALL_JOBS_PAGINATED(
|
||||
$search: String
|
||||
$offset: Int
|
||||
$limit: Int
|
||||
$order: [jobs_order_by!]!
|
||||
) {
|
||||
jobs(offset: $offset, limit: $limit, order_by: $order) {
|
||||
search_jobs(
|
||||
args: { search: $search }
|
||||
offset: $offset
|
||||
limit: $limit
|
||||
order_by: $order
|
||||
) {
|
||||
ownr_fn
|
||||
ownr_ln
|
||||
ownr_ph1
|
||||
ownr_ea
|
||||
owner {
|
||||
id
|
||||
allow_text_message
|
||||
preferred_contact
|
||||
}
|
||||
plate_no
|
||||
plate_st
|
||||
v_vin
|
||||
@@ -743,7 +744,7 @@ export const QUERY_ALL_JOBS_PAGINATED = gql`
|
||||
ded_amt
|
||||
vehicleid
|
||||
}
|
||||
jobs_aggregate {
|
||||
search_jobs_aggregate(args: { search: $search }) {
|
||||
aggregate {
|
||||
count(distinct: true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user