Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public enum PlaceType {
CAFE_TEMP("임시용 외부 카페", new String[] {}),
CONV_TEMP("임시용 외부 편의점", new String[] {}),
CAFT_TEMP("임시용 외부 식당", new String[] {}),
REUSABLE_CUP_RETURN("다회용컵 반납함", new String[] {"다회용컵반납함", "리필로드"}),;
REUSABLE_CUP_RETURN("다회용컵 반납함", new String[] {"다회용컵반납함", "리필로드"}),
PHARMACY("약국", new String[]{}),;

private final String name;
private final String[] nickname;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ private Review findReviewById(Long reviewId) {
private void checkReviewPlaceType(Place place) {
// 식당, 카페만 조회 가능하도록 제한
if(place.getType() != PlaceType.CAFETERIA && place.getType() != PlaceType.CAFE
&& place.getType() != PlaceType.CAFE_TEMP && place.getType() != PlaceType.CAFT_TEMP && place.getType() != PlaceType.CONV_TEMP) {
&& place.getType() != PlaceType.CAFE_TEMP && place.getType() != PlaceType.CAFT_TEMP
&& place.getType() != PlaceType.CONV_TEMP && place.getType() != PlaceType.PHARMACY) {
throw new GlobalException(ResultCode.NOT_SUPPORTED_PLACE_TYPE);
}
}
Expand Down
Loading