Fixed searching on all jobs page BOD-81

This commit is contained in:
Patrick Fic
2020-05-29 09:35:35 -07:00
parent a98e007141
commit c1aaf8b284
19 changed files with 100 additions and 56 deletions

View File

@@ -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)
}