Skip to content

Commit

Permalink
[BE-Fix] OUT_OF_RANGE의 기준 변경 (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwon204 authored Feb 21, 2025
1 parent 70774fc commit 08c49bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static PersonalEventWithStatus from(PersonalEvent personalEvent, LocalDat
if (personalEvent.getIsAdjustable()) {
status = PersonalEventStatus.ADJUSTABLE;
}
if (personalEvent.getEndTime().isBefore(startTime) || personalEvent.getStartTime().isAfter(endTime)) {
if (!personalEvent.getEndTime().isAfter(startTime) || !personalEvent.getStartTime().isBefore(endTime)) {
status = PersonalEventStatus.OUT_OF_RANGE;
}
return new PersonalEventWithStatus(personalEvent.getId(), personalEvent.getStartTime(),
Expand Down

0 comments on commit 08c49bf

Please sign in to comment.