diff --git a/src/main/kotlin/service/AudioService.kt b/src/main/kotlin/service/AudioService.kt index 9d28abf..128364e 100644 --- a/src/main/kotlin/service/AudioService.kt +++ b/src/main/kotlin/service/AudioService.kt @@ -131,7 +131,7 @@ ) ) while (true) { - audioPlayHistoryDao.findAllOrderLastPlayedAtDescLimit(pageSize, 1L) + audioPlayHistoryDao.findAllOrderLastPlayedAtDescLimit(pageSize, pageSize.toLong()) ?.let { result -> if (result.isEmpty()) { return