Skip to content

Commit 0fbeddc

Browse files
김산김산
authored andcommitted
[#14] Fix: miss subtract
1 parent 63980ef commit 0fbeddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/example/helper/service/MealService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public String getSpecKorMeal(String dateCustom, String bld, LocalDateTime curren
148148
}
149149

150150
public Integer getDateDifference(String day, LocalDateTime currentDateTime) {
151-
return (Integer) currentDateTime.getDayOfWeek().getValue() - SpecMealInputsKor.getTypeByString(day);
151+
return SpecMealInputsKor.getTypeByString(day) - (Integer) currentDateTime.getDayOfWeek().getValue();
152152
}
153153
public Boolean dateFormatValidation(String date) {
154154
Boolean ret = true;

0 commit comments

Comments
 (0)