all the time when a staff apply to a shift the status of application will be confirmed

This commit is contained in:
José Salazar
2026-02-10 11:51:56 -05:00
parent 9f604e7c46
commit eee8b2e6ec

View File

@@ -477,7 +477,7 @@ class ShiftsRepositoryImpl
shiftId: shiftId, shiftId: shiftId,
staffId: staffId, staffId: staffId,
roleId: targetRoleId, roleId: targetRoleId,
status: dc.ApplicationStatus.ACCEPTED, status: dc.ApplicationStatus.CONFIRMED,
origin: dc.ApplicationOrigin.STAFF, origin: dc.ApplicationOrigin.STAFF,
) )
// TODO: this should be PENDING so a vendor can accept it. // TODO: this should be PENDING so a vendor can accept it.
@@ -518,7 +518,7 @@ class ShiftsRepositoryImpl
@override @override
Future<void> acceptShift(String shiftId) async { Future<void> acceptShift(String shiftId) async {
await _updateApplicationStatus(shiftId, dc.ApplicationStatus.ACCEPTED); await _updateApplicationStatus(shiftId, dc.ApplicationStatus.CONFIRMED);
} }
@override @override