bug fixes on intake BOD-114

This commit is contained in:
Patrick Fic
2020-05-13 13:45:06 -07:00
parent c470e0ba18
commit 7aff42537c
5 changed files with 77 additions and 63 deletions

View File

@@ -15,6 +15,7 @@ export const QUERY_ALL_ACTIVE_APPOINTMENTS = gql`
start
id
end
arrived
title
isintake
job {
@@ -151,3 +152,14 @@ export const QUERY_SCHEDULE_LOAD_DATA = gql`
}
}
`;
export const MARK_LATEST_APPOINTMENT_AS_ARRIVED = gql`
mutation MARK_LATEST_APPOINTMENT_AS_ARRIVED($appointmentId: uuid!) {
update_appointments(
where: { id: { _eq: $appointmentId } }
_set: { arrived: true }
) {
affected_rows
}
}
`;