Skip to content

Commit bf4c52b

Browse files
committed
Hotfix : 유저 정보 동네 정보 기반으로 조회
1 parent a4de00a commit bf4c52b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,9 +841,9 @@ private List<Party> fetchPartiesByTown(User user, PartyListRequest request,Strin
841841
PartyCategory category = request.getCategory();
842842

843843
if (category == PartyCategory.ALL) {
844-
return partyRepository.findByTown(myTown);
844+
return partyRepository.findByTown(user.getLocation());
845845
} else {
846-
return partyRepository.findByTownAndCategory(myTown, category);
846+
return partyRepository.findByTownAndCategory(user.getLocation(), category);
847847
}
848848
}
849849

0 commit comments

Comments
 (0)