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