Skip to content

Commit

Permalink
Fix: opened 값 설저 오류 변경
Browse files Browse the repository at this point in the history
생성시 opened 값을 반대로 설정하던 문제 수정

[#49]
  • Loading branch information
MuseopKim committed Jun 28, 2021
1 parent 2df95c0 commit 955d737
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ public void finishPaper() {
if (finishDateTime.isAfter(LocalDateTime.now())) {
throw new QuestionPaperNotFinishedException();
}
this.opened = true;
this.opened = false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public QuestionPaper toEntity(QuestionPaperForm questionPaperForm) {
.startDateTime(LocalDateTime.of(startDate, startTime))
.endDateTime(LocalDateTime.of(endDate, endTime))
.finishDateTime(LocalDateTime.of(finishDate, finishTime))
.opened(false)
.opened(true)
.questionPaperForm(questionPaperForm)
.build();
}
Expand Down

0 comments on commit 955d737

Please sign in to comment.