IO-1098 Employee Assignments fix.

This commit is contained in:
Patrick Fic
2021-05-18 14:33:37 -07:00
parent 7ee2c548fb
commit 5ded2c1cc6
2 changed files with 32 additions and 6 deletions

View File

@@ -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!