Skip to content

Commit

Permalink
fix: add param
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaiaiai1 committed Nov 27, 2024
1 parent 8004ae3 commit c96a35b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ public List<WorkoutConfirmationOrObjectionResponse> getWorkoutConfirmations(User
WorkoutHistory workoutHistory = workoutHistoryRepository.getByWorkoutHistoryId(dto.getId());
WorkoutConfirmation workoutConfirmation = workoutHistory.getWorkoutConfirmation();
String imagePresignedUrl = s3Service.getPresignedUrl(ImageUse.WORKOUT_CONFIRMATION, workoutConfirmation.getFilename());
Objection objection = objectionRepository.findByWorkoutConfirmationId(workoutConfirmation.getId()).orElseGet(null);
responses.add(WorkoutConfirmationOrObjectionResponse.workoutConfirmation(loginedUser, workoutHistory, imagePresignedUrl));
Objection objection = objectionRepository.findByWorkoutConfirmationId(workoutConfirmation.getId()).orElseGet(() -> null);
responses.add(WorkoutConfirmationOrObjectionResponse.workoutConfirmation(loginedUser, objection, workoutHistory, imagePresignedUrl));
}
if (dto.getType().equals("objection")) {
Objection objection = objectionRepository.getByObjectionId(dto.getId());
Expand Down

0 comments on commit c96a35b

Please sign in to comment.