From aa43e24995ab695f64e39dc4534e2623c9e2eedd Mon Sep 17 00:00:00 2001 From: jimin3263 Date: Sun, 25 Aug 2024 01:12:04 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=9E=9C=EB=8D=A4=20=EA=B0=9C=EC=88=98?= =?UTF-8?q?=20=EC=84=A0=EC=A0=95=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/pokit/content/port/service/DailyContentService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/src/main/kotlin/com/pokit/content/port/service/DailyContentService.kt b/application/src/main/kotlin/com/pokit/content/port/service/DailyContentService.kt index de16161f..c556c7d0 100644 --- a/application/src/main/kotlin/com/pokit/content/port/service/DailyContentService.kt +++ b/application/src/main/kotlin/com/pokit/content/port/service/DailyContentService.kt @@ -13,6 +13,7 @@ class DailyContentService( ) : DailyContentUseCase { companion object { private const val MIN_CONTENT_COUNT = 5 + private const val RANDOM_CONTENT_COUNT = 3 } @Transactional @@ -34,7 +35,7 @@ class DailyContentService( return emptyList() } - return ids.shuffled().take(MIN_CONTENT_COUNT) + return ids.shuffled().take(RANDOM_CONTENT_COUNT) } }