Skip to content

Commit

Permalink
refactor : SOID -> SOLD로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
mijin0721 committed May 4, 2023
1 parent 6fddde8 commit 0cde116
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;

public enum MenuSell {
SOID, SELL;
SOLD, SELL;

@JsonCreator
public static MenuSell from(String s) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public String modifySoldOut(Long mno) {
Menu menu = byMno.orElseThrow();

if(menu.getMenuSell() == MenuSell.SELL) {
menu.setMenuSell(MenuSell.SOID);
menu.setMenuSell(MenuSell.SOLD);
menuRepository.save(menu);
return "Menu is sold out";
} else {
Expand Down

0 comments on commit 0cde116

Please sign in to comment.