IO-1098 Employee Assignments fix.
This commit is contained in:
@@ -864,6 +864,36 @@ export const UPDATE_JOB = gql`
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_JOB_ASSIGNMENTS = gql`
|
||||
mutation UPDATE_JOB_ASSIGNMENTS($jobId: uuid!, $job: jobs_set_input!) {
|
||||
update_jobs(where: { id: { _eq: $jobId } }, _set: $job) {
|
||||
returning {
|
||||
id
|
||||
employee_body_rel {
|
||||
id
|
||||
first_name
|
||||
last_name
|
||||
}
|
||||
employee_refinish_rel {
|
||||
id
|
||||
first_name
|
||||
last_name
|
||||
}
|
||||
employee_prep_rel {
|
||||
id
|
||||
first_name
|
||||
last_name
|
||||
}
|
||||
employee_csr_rel {
|
||||
id
|
||||
first_name
|
||||
last_name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const VOID_JOB = gql`
|
||||
mutation VOID_JOB(
|
||||
$jobId: uuid!
|
||||
|
||||
Reference in New Issue
Block a user