Vacaciones #64
@ -153,7 +153,7 @@ public class RequestsListView extends Main {
|
||||
|
||||
private String getEmployeeStatus(final Employee employee) {
|
||||
Optional<TimeOffRequest> activeRequest = requestService
|
||||
.findByEmployeeAndState(employee.getId(), TimeOffRequestStatus.TAKEN);
|
||||
.findByEmployeeAndState(employee.getId(), TimeOffRequestStatus.IN_USE);
|
||||
return activeRequest.isPresent() ? "IDLE" : "ACTIVE";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user