Skip to content

Commit

Permalink
[fix] store 도메인의 isOpen 메서드 수정 못했던것 수정 (#122)
Browse files Browse the repository at this point in the history
이전 PR에서 storeTime의 구조를 변경하면서 미처 변경하지 못한 도메인 수정
  • Loading branch information
Hyeon-Uk authored Aug 21, 2024
1 parent dd9d23a commit 0333cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/camp/woowak/lab/store/domain/Store.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public boolean isOpen() {

LocalDateTime now = LocalDateTime.now();

return (now.isEqual(openTime) || now.isAfter(openTime)) && now.isBefore(closeTime);
return openTime.isBefore(now) && now.isBefore(closeTime);
}

public String getStoreAddress() {
Expand Down

0 comments on commit 0333cd9

Please sign in to comment.