Skip to content

Commit

Permalink
Merge pull request #5 from mijin0721/devepole
Browse files Browse the repository at this point in the history
refactor : SOID -> SOLD로 변경
  • Loading branch information
mijin0721 authored May 4, 2023
2 parents 21e7cb5 + 0cde116 commit 7290879
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 7290879

Please sign in to comment.