Skip to content

Commit

Permalink
🐞 BugFix/#194 - λŒ“κΈ€ μž‘μ„±μžκ°€ κΈ€ μž‘μ„±μžλ‘œ ν‘œμ‹œλ˜λ˜ 버그 μˆ˜μ • #194
Browse files Browse the repository at this point in the history
  • Loading branch information
dongkyeomjang committed Dec 6, 2024
1 parent 2b3da24 commit 902949f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ public void execute(Long eventId) {
// μƒˆλ‘œμš΄ 이벀트 생성
Event newEvent = eventService.createEvent(
LocalDate.now(),
LocalDate.now().plusDays(13),
// LocalDate.now().plusDays(13),
LocalDate.now(), // ν…ŒμŠ€νŠΈμš© 당일
store
);
newEvent = eventRepository.save(newEvent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ public void execute(MultipartFile logo,
// μƒμ„±ν•œ κ°€κ²Œμ— λŒ€ν•œ 이벀트 생성
Event event = eventService.createEvent(
LocalDate.now(),
LocalDate.now().plusDays(13),
// LocalDate.now().plusDays(13),
LocalDate.now(), // ν…ŒμŠ€νŠΈμš©. 당일
store
);
event = eventRepository.save(event);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ public static CommentInfoDto fromEntity(Comment comment) {
}
}

public static ReadCommentOverviewResponseDto.CommentDto of(Comment comment, User user, Boolean isMe) {
public static ReadCommentOverviewResponseDto.CommentDto of(Comment comment, Boolean isMe) {
return ReadCommentOverviewResponseDto.CommentDto.builder()
.writerInfo(ReadCommentOverviewResponseDto.CommentDto.WriterInfoDto.of(user, isMe))
.writerInfo(ReadCommentOverviewResponseDto.CommentDto.WriterInfoDto.of(comment.getUser(), isMe))
.commentInfo(ReadCommentOverviewResponseDto.CommentDto.CommentInfoDto.fromEntity(comment))
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public CreateBoardResponseDto execute(UUID accountId, MultipartFile file, Create
applicationEventPublisher.publishEvent(
scheduledBoardJobService.createScheduledJob(
board.getId(),
// board.getEndDate().plusDays(1).atStartOfDay()
LocalDateTime.now().plusMinutes(1) // ν…ŒμŠ€νŠΈμš© 1λΆ„ λ’€
board.getEndDate().plusDays(1).atStartOfDay()
// LocalDateTime.now().plusMinutes(1) // ν…ŒμŠ€νŠΈμš© 1λΆ„ λ’€
)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public ReadCommentOverviewResponseDto execute(UUID accountId, Long boardId, Inte
List<ReadCommentOverviewResponseDto.CommentDto> commentList = comments.getContent().stream()
.map(comment -> {
Boolean isMe = comment.getUser().getId().equals(user.getId());
return ReadCommentOverviewResponseDto.CommentDto.of(comment, user, isMe);
return ReadCommentOverviewResponseDto.CommentDto.of(comment, isMe);
})
.toList();

Expand Down

0 comments on commit 902949f

Please sign in to comment.