fix backend merge conflicts

This commit is contained in:
2026-04-07 21:13:47 -06:00
parent 9ca647f0cc
commit 1de6c981dc
3 changed files with 0 additions and 22 deletions

View File

@@ -12,8 +12,6 @@ public class AdoptionRequest {
@NotNull(message = "Customer ID is required")
private Long customerId;
private Long employeeId;
@NotNull(message = "Adoption date is required")
private LocalDate adoptionDate;
@@ -40,10 +38,6 @@ public class AdoptionRequest {
this.customerId = customerId;
}
public Long getEmployeeId() { return employeeId; }
public void setEmployeeId(Long employeeId) { this.employeeId = employeeId; }
public LocalDate getAdoptionDate() {
return adoptionDate;
}

View File

@@ -28,9 +28,6 @@ public class AppointmentRequest {
private Long employeeId;
// @NotNull(message = "Employee ID is required")
private Long employeeId;
public Long getCustomerId() {
return customerId;
}
@@ -95,14 +92,6 @@ public class AppointmentRequest {
this.employeeId = employeeId;
}
public Long getEmployeeId() {
return employeeId;
}
public void setEmployeeId(Long employeeId) {
this.employeeId = employeeId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;

View File

@@ -91,10 +91,6 @@ public class AppointmentService {
User customer = userRepository.findById(request.getCustomerId())
.orElseThrow(() -> new ResourceNotFoundException("Customer not found with id: " + request.getCustomerId()));
employee = AuthenticationHelper.getAuthenticatedEmployee(
userRepository, employeeRepository);
}
StoreLocation store = storeRepository.findById(request.getStoreId())
.orElseThrow(() -> new ResourceNotFoundException("Store not found with id: " + request.getStoreId()));
@@ -116,7 +112,6 @@ public class AppointmentService {
appointment.setAppointmentTime(request.getAppointmentTime());
appointment.setAppointmentStatus(request.getAppointmentStatus());
appointment.setPet(pet);
appointment.setEmployee(employee);
appointment = appointmentRepository.save(appointment);
return mapToResponse(appointment);