Skip to content

Commit

Permalink
Merge pull request #203 from dnd-side-project/dev
Browse files Browse the repository at this point in the history
fix: ์งˆ๋ฌธ๋ณ„ ๋‹ต๋ณ€ API ์‘๋‹ต์— question type ์ถ”๊ฐ€
  • Loading branch information
rlacksgus97 authored Sep 24, 2024
2 parents e0fb724 + ea0ee21 commit b0508ed
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 @@ -190,7 +190,7 @@ public GetAnswersByQuestionResponse getAnswersByQuestion(
.wikiType(survey.getWikiType())
.build()).orElse(null));

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

private void validateFilter(Period period, Relation relation) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

Expand All @@ -12,5 +13,6 @@
public class GetAnswersByQuestionResponse {
private String questionTitle;
private QuestionName questionName;
private QuestionType questionType;
private PageableDto<SingleAnswerWithSurveyDetailDto> answers;
}

0 comments on commit b0508ed

Please sign in to comment.