Transfered alt_transport to job from event and added to production boards. IO-462
This commit is contained in:
@@ -20,8 +20,8 @@ export const QUERY_ALL_ACTIVE_APPOINTMENTS = gql`
|
||||
isintake
|
||||
block
|
||||
color
|
||||
alt_transport
|
||||
job {
|
||||
alt_transport
|
||||
ro_number
|
||||
ownr_ln
|
||||
ownr_co_nm
|
||||
@@ -55,7 +55,11 @@ export const QUERY_ALL_ACTIVE_APPOINTMENTS = gql`
|
||||
`;
|
||||
|
||||
export const INSERT_APPOINTMENT = gql`
|
||||
mutation INSERT_APPOINTMENT($app: [appointments_insert_input!]!) {
|
||||
mutation INSERT_APPOINTMENT(
|
||||
$app: [appointments_insert_input!]!
|
||||
$jobId: uuid
|
||||
$altTransport: String
|
||||
) {
|
||||
insert_appointments(objects: $app) {
|
||||
returning {
|
||||
id
|
||||
@@ -65,6 +69,14 @@ export const INSERT_APPOINTMENT = gql`
|
||||
title
|
||||
isintake
|
||||
block
|
||||
}
|
||||
}
|
||||
update_jobs(
|
||||
where: { id: { _eq: $jobId } }
|
||||
_set: { alt_transport: $altTransport }
|
||||
) {
|
||||
returning {
|
||||
id
|
||||
alt_transport
|
||||
}
|
||||
}
|
||||
@@ -81,9 +93,8 @@ export const QUERY_APPOINTMENT_BY_DATE = gql`
|
||||
end
|
||||
title
|
||||
isintake
|
||||
alt_transport
|
||||
|
||||
job {
|
||||
alt_transport
|
||||
ro_number
|
||||
ownr_ln
|
||||
ownr_fn
|
||||
@@ -129,7 +140,6 @@ export const UPDATE_APPOINTMENT = gql`
|
||||
title
|
||||
isintake
|
||||
block
|
||||
alt_transport
|
||||
color
|
||||
}
|
||||
}
|
||||
@@ -160,7 +170,6 @@ export const QUERY_APPOINTMENTS_BY_JOBID = gql`
|
||||
arrived
|
||||
canceled
|
||||
created_at
|
||||
alt_transport
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user