Skip to content

Commit

Permalink
Merge pull request #130 from dnd-side-project/feat/#129
Browse files Browse the repository at this point in the history
์งˆ๋ฌธ๋ณ„ ์ƒ์„ธ๋ณด๊ธฐ questionName ํ•„๋“œ ์ถ”๊ฐ€(#129)
  • Loading branch information
rlacksgus97 authored Mar 19, 2024
2 parents 1e88bd7 + 9e0d5dc commit 794ea4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public GetAnswersByQuestionResponse getAnswersByQuestion(String wikiId, String q
.build();
});

return new GetAnswersByQuestionResponse(question.getTitle(), PageableDto.create(answers));
return new GetAnswersByQuestionResponse(question.getTitle(), question.getName(), PageableDto.create(answers));
}

private void validateFilter(Period period, Relation relation) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.dnd.namuiwiki.domain.survey.model.dto;

import com.dnd.namuiwiki.common.dto.PageableDto;
import com.dnd.namuiwiki.domain.question.type.QuestionName;
import lombok.AllArgsConstructor;
import lombok.Getter;

Expand All @@ -10,5 +11,6 @@
@Getter
public class GetAnswersByQuestionResponse {
private String questionTitle;
private QuestionName questionName;
private PageableDto<SingleAnswerWithSurveyDetailDto> answers;
}

0 comments on commit 794ea4b

Please sign in to comment.