Skip to content

Commit

Permalink
Merge branch 'common/dev/refactor-presentation-date#1691' of https://…
Browse files Browse the repository at this point in the history
…github.com/innovationacademy-kr/Cabi into common/dev/refactor-presentation-date#1691
  • Loading branch information
saewoo1 committed Oct 11, 2024
2 parents d5dc781 + e4e0f46 commit c2d15f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class Presentation {

@Setter
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "USER_ID")
@JoinColumn(name = "USER_ID", nullable = true)
private User user;

protected Presentation(Category category, LocalDateTime dateTime,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ public void generatePresentationFormsEveryThreeMonth(LocalDate nowDate) {
wednesdays.add(fourthWednesday.atStartOfDay());
}

User dummy = userQueryService.getUserByName("hyowchoi");
List<Presentation> presentations = wednesdays.stream()
.map(wednesday -> {
Presentation presentation = Presentation.of(
Expand All @@ -276,7 +275,6 @@ public void generatePresentationFormsEveryThreeMonth(LocalDate nowDate) {
"dummy",
"dummy"
);
presentation.setUser(dummy);
return presentation;
})
.collect(Collectors.toList());
Expand Down

0 comments on commit c2d15f0

Please sign in to comment.