Skip to content

Commit

Permalink
update :: saveChangePast 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Umjiseung committed Apr 20, 2024
1 parent 4144512 commit 95237bb
Showing 1 changed file with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,8 @@ public void execute() {
}

private void saveChangePast(Event event) {
Event changeEvent = Event.builder()
.id(event.getId())
.title(event.getTitle())
.content(event.getContent())
.user(event.getUser())
.started_at(event.getStarted_at())
.ended_at(event.getEnded_at())
.img_url(event.getImg_url())
.status(Status.PAST)
.build();

eventRepository.save(changeEvent);
event.setStatus(Status.PAST);

eventRepository.save(event);
}
}

0 comments on commit 95237bb

Please sign in to comment.