forked from Olympic/NTO-2025-Backend-TeamTask
ура
This commit is contained in:
@@ -89,7 +89,7 @@ public class BookingServiceImpl implements BookingService {
|
||||
throw new IllegalArgumentException("Place already booked for this date");
|
||||
}
|
||||
Booking booking = new Booking();
|
||||
booking.setEmployee((Map<String, Object>) employee);
|
||||
booking.setEmployee((Employee) employee);
|
||||
booking.setPlace(place);
|
||||
booking.setDate(bookingDate);
|
||||
bookingRepository.save(booking);
|
||||
|
||||
Reference in New Issue
Block a user