Skip to content

Commit

Permalink
refactor: 변수명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
nayonsoso committed Oct 11, 2024
1 parent e87d789 commit d8b511a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@RequiredArgsConstructor
public class ReviewGatheredLookupService {

private static final int MAX_ANSWER_LENGTH = 100;
private static final int ANSWER_RESPONSE_LIMIT = 100;

private final QuestionRepository questionRepository;
private final AnswerRepository answerRepository;
Expand Down Expand Up @@ -59,7 +59,8 @@ private Map<Question, List<Answer>> getQuestionAnswers(Section section, ReviewGr
.collect(Collectors.toMap(Question::getId, Function.identity()));

Map<Long, List<Answer>> questionIdAnswers = answerRepository
.findReceivedAnswersByQuestionIds(reviewGroup.getId(), questionIdQuestion.keySet(), MAX_ANSWER_LENGTH)
.findReceivedAnswersByQuestionIds(reviewGroup.getId(), questionIdQuestion.keySet(),
ANSWER_RESPONSE_LIMIT)
.stream()
.collect(Collectors.groupingBy(Answer::getQuestionId));

Expand Down

0 comments on commit d8b511a

Please sign in to comment.