diff --git a/src/main/java/com/hallym/festival/domain/menu/entity/MenuSell.java b/src/main/java/com/hallym/festival/domain/menu/entity/MenuSell.java index e0da440..9479396 100644 --- a/src/main/java/com/hallym/festival/domain/menu/entity/MenuSell.java +++ b/src/main/java/com/hallym/festival/domain/menu/entity/MenuSell.java @@ -3,7 +3,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; public enum MenuSell { - SOID, SELL; + SOLD, SELL; @JsonCreator public static MenuSell from(String s) { diff --git a/src/main/java/com/hallym/festival/domain/menu/service/MenuServicelmpl.java b/src/main/java/com/hallym/festival/domain/menu/service/MenuServicelmpl.java index f85a8cd..5cd0d3d 100644 --- a/src/main/java/com/hallym/festival/domain/menu/service/MenuServicelmpl.java +++ b/src/main/java/com/hallym/festival/domain/menu/service/MenuServicelmpl.java @@ -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 {