261022_02_ENH: Class에서 record로 변경가능한 Dto들 record로 변경
This commit is contained in:
@@ -158,7 +158,7 @@ public class StatisticsService {
|
||||
|
||||
private List<QuestionDto> loadQuestions(ProjectRefDto project, RequestUserContext ctx) {
|
||||
boolean includeProfileQuestions =
|
||||
project.getProjectType() == ProjectType.KIWI
|
||||
project.projectType() == ProjectType.KIWI
|
||||
&& Integer.valueOf(KartConstant.PROFILE_QUESTION_ROLE).equals(ctx.getUserRole());
|
||||
return questionService.organize(questionRepository.list(project, includeProfileQuestions));
|
||||
}
|
||||
@@ -200,7 +200,7 @@ public class StatisticsService {
|
||||
List<StatisticsRequestDto> requests,
|
||||
StatisticsRequestDto sharedRequest,
|
||||
List<QuestionDto> questions) {
|
||||
if (project.getProjectType() != ProjectType.KIWI) {
|
||||
if (project.projectType() != ProjectType.KIWI) {
|
||||
return false;
|
||||
}
|
||||
return requests.stream().anyMatch(request -> isProfileId(request.getIndex()))
|
||||
|
||||
Reference in New Issue
Block a user