diff --git a/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/routes/ApiRoutes.kt b/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/routes/ApiRoutes.kt index ec2ab17..a84b57a 100644 --- a/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/routes/ApiRoutes.kt +++ b/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/routes/ApiRoutes.kt @@ -117,8 +117,9 @@ fun Routing.apiRoutes() { songConfig.disabled )) val subordinates = user.subordinates + println(subordinates) returnUsers.addAll(subordinates.map { - val subStatus = user.token?.let { it1 -> getStreamInfo(it1) } + val subStatus = it.token?.let { it1 -> getStreamInfo(it1) } return@map if (it.token == null || subStatus?.content == null) { null } else {