Skip to content

Commit

Permalink
Fix for sonarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
VasylyshynDmytro committed Dec 13, 2024
1 parent c1c8131 commit 4d6bdce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ private PageableDto<SearchPlacesDto> getSearchPlacesDtoPageableDto(Page<Place> p
public UpdatePlaceStatusWithUserEmailDto updatePlaceStatus(UpdatePlaceStatusWithUserEmailDto dto) {
Place place = placeRepo.findByNameIgnoreCase(dto.getPlaceName())
.orElseThrow(() -> new NotFoundException(ErrorMessage.PLACE_NOT_FOUND_BY_NAME + dto.getPlaceName()));
userRepo.findByEmail(dto.getEmail())
User user = userRepo.findByEmail(dto.getEmail())
.orElseThrow(() -> new NotFoundException(ErrorMessage.USER_NOT_FOUND_BY_EMAIL + dto.getEmail()));
place.setStatus(dto.getNewStatus());
placeRepo.save(place);
Expand Down

0 comments on commit 4d6bdce

Please sign in to comment.