This commit is contained in:
Bhumi Shah
2025-12-05 23:02:14 +03:00
parent f6acec1b98
commit 3b64ad9626
9 changed files with 53 additions and 87 deletions

View File

@@ -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);
}