IO-1185 Adjust contract find to use plate.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user