From 0cde116ab0efd11aefb6fb6fad3a417c798f936a Mon Sep 17 00:00:00 2001 From: mijin0721 Date: Thu, 4 May 2023 12:38:44 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20:=20SOID=20->=20SOLD=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hallym/festival/domain/menu/entity/MenuSell.java | 2 +- .../hallym/festival/domain/menu/service/MenuServicelmpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {