Skip to content

Commit

Permalink
feat: 상점 유형 쿠킹바 -> 음식점
Browse files Browse the repository at this point in the history
  • Loading branch information
swa07016 committed Mar 10, 2024
1 parent 1918227 commit 436f6ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public TastingNote CreateTastingNote(TastingNoteRequest.CreateTastingNoteDTO req
.vintage(request.getVintage())
.tannins(request.getTannin())
.finish(request.getFinish())
.price((request.getPrice() == null) ? 0 : request.getPrice())
.price(request.getPrice())
.memo(request.getMemo())
.buyAgain(request.getBuyAgain())
.starRating(request.getRating())
Expand Down Expand Up @@ -406,7 +406,7 @@ private String checkValue(int value){
}

public void updateTastingNote(TastingNote tastingNote, TastingNoteRequest.UpdateTastingNoteDTO request) {
tastingNote.setStarRating((request.getPrice() == null) ? 0 : request.getPrice());
tastingNote.setStarRating((request.getRating() == null) ? 0 : request.getRating());
tastingNote.setBuyAgain(request.getBuyAgain());
tastingNote.setMemo(request.getMemo());
tastingNote.setPrice(request.getPrice());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ public enum ShopType {
PUB("펍"),
BOTTLE_SHOP("바틀샵"),
BAR("바"),
COOKING_BAR("요리 주점"),
RESTAURANT("음식점"),
CAFE("카페")
;
Expand Down

0 comments on commit 436f6ee

Please sign in to comment.