Changed job searching function BOD-311

This commit is contained in:
Patrick Fic
2020-10-05 10:16:07 -07:00
parent d9fd31a639
commit 44572ee2d0
7 changed files with 83 additions and 7 deletions

View File

@@ -2,7 +2,10 @@ import gql from "graphql-tag";
export const QUERY_ALL_ACTIVE_JOBS = gql`
query QUERY_ALL_ACTIVE_JOBS($statuses: [String!]!) {
jobs(where: { status: { _in: $statuses } }) {
jobs(
where: { status: { _in: $statuses } }
order_by: { est_number: desc }
) {
ownr_fn
ownr_ln
ownr_ph1
@@ -1108,7 +1111,7 @@ export const QUERY_ALL_JOBS_PAGINATED = gql`
$search: String
$offset: Int
$limit: Int
$order: [jobs_order_by!]!
$order: [jobs_order_by!]
) {
search_jobs(
args: { search: $search }