forked from Olympic/NTO-2025-Backend-TeamTask
1111
This commit is contained in:
@@ -31,7 +31,7 @@ public class BookingServiceImpl implements BookingService {
|
||||
if (employeeCode == null || employeeCode.isEmpty()) {
|
||||
throw new IllegalArgumentException("Employee code cannot be null or empty");
|
||||
}
|
||||
Employee employee = employeeService.getEmployeeWithBookings(employeeCode);
|
||||
Employee employee = employeeService.getEmployeeByCode(employeeCode);
|
||||
if (employee == null) {
|
||||
throw new EmployeeNotFoundException("Employee not found with code: " + employeeCode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user