IO-1185 Adjust contract find to use plate.

This commit is contained in:
Patrick Fic
2021-06-14 09:55:09 -07:00
parent f8c1087360
commit 5b9640a1de
3 changed files with 5 additions and 5 deletions

View File

@@ -191,7 +191,7 @@ export const QUERY_ACTIVE_CONTRACTS_PAGINATED = gql`
`;
export const FIND_CONTRACT = gql`
query FIND_CONTRACT($fleet: String, $time: timestamptz!) {
query FIND_CONTRACT($plate: String, $time: timestamptz!) {
cccontracts(
where: {
_or: [
@@ -199,7 +199,7 @@ export const FIND_CONTRACT = gql`
{ actualreturn: { _is_null: true } }
]
start: { _lte: $time }
courtesycar: { fleetnumber: { _eq: $fleet } }
courtesycar: { plate: { _eq: $plate } }
}
) {
agreementnumber