Skip to content

Commit 91fc454

Browse files
committed
hotfix : 파티 수정
1 parent d11e588 commit 91fc454

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/ita/tinybite/domain/party/service/PartyService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,9 @@ public void updateParty(Long partyId, Long userId, PartyUpdateRequest request) {
455455
request.getImages()
456456
);
457457

458+
// 주어진 좌표로 법정동 반환
458459
String location = locationService.getLocation(request.getPickupLocation().getPickupLatitude().toString(), request.getPickupLocation().getPickupLongitude().toString());
460+
// place는 pickupLocation, locaton은 town에 저장
459461
party.updatePartyLocation(request.getPickupLocation(), location);
460462
}
461463
}
@@ -820,11 +822,9 @@ private List<Party> fetchPartiesByTown(User user, PartyListRequest request) {
820822
PartyCategory category = request.getCategory();
821823

822824
if (category == PartyCategory.ALL) {
823-
return partyRepository.findByPickupLocation_Place(location);
824-
// return partyRepository.findByTown(location);
825+
return partyRepository.findByTown(location);
825826
} else {
826-
return partyRepository.findByPickupLocation_PlaceAndCategory(location, category);
827-
// return partyRepository.findByTownAndCategory(location, category);
827+
return partyRepository.findByTownAndCategory(location, category);
828828
}
829829
}
830830

0 commit comments

Comments
 (0)