Merged in hotfix/2021-08-12 (pull request #177)

hotfix/2021-08-12
This commit is contained in:
Patrick Fic
2021-08-12 20:42:55 +00:00
3 changed files with 22 additions and 17 deletions

View File

@@ -117,7 +117,7 @@ export function JobChecklistForm({
});
}
}
if (type === "intake" && job.owner && job.owner.id) {
//Updae Owner Allow to Text
const updateOwnerResult = await updateOwner({
variables: {
@@ -133,6 +133,7 @@ export function JobChecklistForm({
}),
});
}
}
setLoading(false);
@@ -176,7 +177,7 @@ export function JobChecklistForm({
initialValues={{
...(type === "intake" && {
addToProduction: true,
allow_text_message: job.owner.allow_text_message,
allow_text_message: job.owner && job.owner.allow_text_message,
scheduled_completion:
(job && job.scheduled_completion) ||
moment().businessAdd(

View File

@@ -22,10 +22,10 @@ export default function JobAdminDeleteIntake({ job }) {
mutation DELETE_DELIVERY($jobId: uuid!) {
update_jobs_by_pk(
pk_columns: { id: $jobId }
_set: { deliverychecklist: null }
_set: { deliverchecklist: null }
) {
id
deliverychecklist
deliverchecklist
}
}
`);

View File

@@ -1849,6 +1849,10 @@ export const QUERY_JOB_CHECKLISTS = gql`
scheduled_delivery
actual_delivery
production_vars
owner {
id
allow_text_message
}
bodyshop {
id
intakechecklist