Skip to content

Commit

Permalink
feat: 랜덤 개수 선정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jimin3263 committed Aug 24, 2024
1 parent b1d9f2d commit aa43e24
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class DailyContentService(
) : DailyContentUseCase {
companion object {
private const val MIN_CONTENT_COUNT = 5
private const val RANDOM_CONTENT_COUNT = 3
}

@Transactional
Expand All @@ -34,7 +35,7 @@ class DailyContentService(
return emptyList()
}

return ids.shuffled().take(MIN_CONTENT_COUNT)
return ids.shuffled().take(RANDOM_CONTENT_COUNT)
}

}

0 comments on commit aa43e24

Please sign in to comment.