File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
backend/src/main/java/io/f1/backend/domain/quiz Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -82,15 +82,15 @@ public void changeThumbnailUrl(String thumbnailUrl) {
8282 this .thumbnailUrl = thumbnailUrl ;
8383 }
8484
85- public Long getUserIdIfExists () {
85+ public Long findCreatorId () {
8686 if (this .creator == null ) {
8787 return null ;
8888 }
8989
9090 return this .creator .getId ();
9191 }
9292
93- public String getUserNicknameIfExists () {
93+ public String findCreatorNickname () {
9494 if (this .creator == null ) {
9595 return "탈퇴한 사용자" ;
9696 }
Original file line number Diff line number Diff line change @@ -39,15 +39,15 @@ public static QuizCreateResponse quizToQuizCreateResponse(Quiz quiz) {
3939 quiz .getQuizType (),
4040 quiz .getDescription (),
4141 quiz .getThumbnailUrl (),
42- quiz .getUserIdIfExists ());
42+ quiz .findCreatorId ());
4343 }
4444
4545 public static QuizListResponse quizToQuizListResponse (Quiz quiz ) {
4646 return new QuizListResponse (
4747 quiz .getId (),
4848 quiz .getTitle (),
4949 quiz .getDescription (),
50- quiz .getUserNicknameIfExists (),
50+ quiz .findCreatorNickname (),
5151 quiz .getQuestions ().size (),
5252 quiz .getThumbnailUrl ());
5353 }
@@ -79,7 +79,7 @@ public static QuizQuestionListResponse quizToQuizQuestionListResponse(Quiz quiz)
7979 return new QuizQuestionListResponse (
8080 quiz .getTitle (),
8181 quiz .getQuizType (),
82- quiz .getUserIdIfExists (),
82+ quiz .findCreatorId (),
8383 quiz .getDescription (),
8484 quiz .getThumbnailUrl (),
8585 quiz .getQuestions ().size (),
You can’t perform that action at this time.
0 commit comments