Apply filter on QuizCategoryList APIs

This commit is contained in:
MangKyu
2022-02-01 04:26:13 +09:00
parent 86862a75cc
commit 69dd4d53ba

View File

@@ -99,7 +99,7 @@ public class QuizService {
}
public List<QuizCategoryResponse> getQuizCategoryList() {
final List<EnumMapperValue> enumMapperValueList = enumMapperFactory.get(EnumMapperKey.QUIZ_CATEGORY);
final List<EnumMapperValue> enumMapperValueList = enumMapperFactory.get(EnumMapperKey.QUIZ_CATEGORY).stream().filter(EnumMapperValue::isExpose).collect(Collectors.toList());
return enumMapperValueList.stream()
.map(this::convertToQuizCategoryResponse)
.collect(Collectors.toList());