deleting accepted from application
This commit is contained in:
@@ -275,7 +275,7 @@ query getApplicationsByStaffId(
|
|||||||
applications(
|
applications(
|
||||||
where: {
|
where: {
|
||||||
staffId: { eq: $staffId }
|
staffId: { eq: $staffId }
|
||||||
status: { in: [ACCEPTED, CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
|
status: { in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
|
||||||
shift: {
|
shift: {
|
||||||
date: { ge: $dayStart, le: $dayEnd }
|
date: { ge: $dayStart, le: $dayEnd }
|
||||||
}
|
}
|
||||||
@@ -516,7 +516,7 @@ query getApplicationByStaffShiftAndRole(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#getting staffs of an shiftrole ACCEPTED for orders view client
|
#getting staffs of an shiftrole CONFIRMED for orders view client
|
||||||
query listAcceptedApplicationsByShiftRoleKey(
|
query listAcceptedApplicationsByShiftRoleKey(
|
||||||
$shiftId: UUID!
|
$shiftId: UUID!
|
||||||
$roleId: UUID!
|
$roleId: UUID!
|
||||||
@@ -527,7 +527,7 @@ query listAcceptedApplicationsByShiftRoleKey(
|
|||||||
where: {
|
where: {
|
||||||
shiftId: { eq: $shiftId }
|
shiftId: { eq: $shiftId }
|
||||||
roleId: { eq: $roleId }
|
roleId: { eq: $roleId }
|
||||||
status: { eq: ACCEPTED }
|
status: { eq: CONFIRMED }
|
||||||
}
|
}
|
||||||
offset: $offset
|
offset: $offset
|
||||||
limit: $limit
|
limit: $limit
|
||||||
@@ -540,7 +540,7 @@ query listAcceptedApplicationsByShiftRoleKey(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#getting staffs of an shiftrole ACCEPTED for orders of the day view client
|
#getting staffs of an shiftrole status for orders of the day view client
|
||||||
query listAcceptedApplicationsByBusinessForDay(
|
query listAcceptedApplicationsByBusinessForDay(
|
||||||
$businessId: UUID!
|
$businessId: UUID!
|
||||||
$dayStart: Timestamp!
|
$dayStart: Timestamp!
|
||||||
@@ -550,8 +550,7 @@ query listAcceptedApplicationsByBusinessForDay(
|
|||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
applications(
|
applications(
|
||||||
where: {
|
where: {
|
||||||
#status: { eq: ACCEPTED }
|
status: { in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
|
||||||
status: { in: [ACCEPTED, CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
|
|
||||||
shift: {
|
shift: {
|
||||||
date: { ge: $dayStart, le: $dayEnd }
|
date: { ge: $dayStart, le: $dayEnd }
|
||||||
order: { businessId: { eq: $businessId } }
|
order: { businessId: { eq: $businessId } }
|
||||||
@@ -581,11 +580,10 @@ query listStaffsApplicationsByBusinessForDay(
|
|||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
applications(
|
applications(
|
||||||
where: {
|
where: {
|
||||||
status: {in: [ACCEPTED, CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE]}
|
status: {in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE]}
|
||||||
shift: {
|
shift: {
|
||||||
date: { ge: $dayStart, le: $dayEnd }
|
date: { ge: $dayStart, le: $dayEnd }
|
||||||
order: { businessId: { eq: $businessId } }
|
order: { businessId: { eq: $businessId } }
|
||||||
#status: { eq: ACCEPTED }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
offset: $offset
|
offset: $offset
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
enum ApplicationStatus {
|
enum ApplicationStatus {
|
||||||
PENDING
|
PENDING
|
||||||
ACCEPTED
|
|
||||||
REJECTED
|
REJECTED
|
||||||
CONFIRMED
|
CONFIRMED
|
||||||
CHECKED_IN
|
CHECKED_IN
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user