mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
debug on loading (5x)
This commit is contained in:
parent
5450d5039a
commit
be057c59e1
@ -56,7 +56,7 @@ fun Routing.apiCommandRoutes() {
|
||||
}
|
||||
|
||||
val managers = transaction {
|
||||
user.managers.copy()
|
||||
user.managers.toList()
|
||||
}
|
||||
if(!managers.any { it.naverId == session?.id } && user.naverId != session?.id) {
|
||||
call.respond(HttpStatusCode.BadRequest, "User does not exist")
|
||||
@ -89,7 +89,7 @@ fun Routing.apiCommandRoutes() {
|
||||
}
|
||||
|
||||
val managers = transaction {
|
||||
user.managers.copy()
|
||||
user.managers.toList()
|
||||
}
|
||||
if(!managers.any { it.naverId == session?.id } && user.naverId != session?.id) {
|
||||
call.respond(HttpStatusCode.BadRequest, "User does not exist")
|
||||
@ -127,7 +127,7 @@ fun Routing.apiCommandRoutes() {
|
||||
}
|
||||
|
||||
val managers = transaction {
|
||||
user.managers.copy()
|
||||
user.managers.toList()
|
||||
}
|
||||
if(!managers.any { it.naverId == session?.id } && user.naverId != session?.id) {
|
||||
call.respond(HttpStatusCode.BadRequest, "User does not exist")
|
||||
|
@ -32,7 +32,7 @@ fun Route.apiDiscordRoutes() {
|
||||
}
|
||||
|
||||
val managers = transaction {
|
||||
user.managers.copy()
|
||||
user.managers.toList()
|
||||
}
|
||||
if(!managers.any { it.naverId == session?.id } && user.naverId != session?.id) {
|
||||
call.respond(HttpStatusCode.BadRequest, "User does not exist")
|
||||
@ -65,7 +65,7 @@ fun Route.apiDiscordRoutes() {
|
||||
}
|
||||
|
||||
val managers = transaction {
|
||||
user.managers.copy()
|
||||
user.managers.toList()
|
||||
}
|
||||
if(!managers.any { it.naverId == session?.id } && user.naverId != session?.id) {
|
||||
call.respond(HttpStatusCode.BadRequest, "User does not exist")
|
||||
|
@ -120,7 +120,7 @@ fun Routing.apiRoutes() {
|
||||
))
|
||||
|
||||
val subordinates = transaction {
|
||||
user.subordinates.copy()
|
||||
user.subordinates.toList()
|
||||
}
|
||||
returnUsers.addAll(subordinates.map {
|
||||
val subStatus = it.token?.let { token -> ChzzkUserCache.getCachedUser(token) }
|
||||
|
@ -29,7 +29,7 @@ fun Routing.apiTimerRoutes() {
|
||||
}
|
||||
|
||||
val managers = transaction {
|
||||
user.managers.copy()
|
||||
user.managers.toList()
|
||||
}
|
||||
if(!managers.any { it.naverId == session?.id } && user.naverId != session?.id) {
|
||||
call.respond(HttpStatusCode.BadRequest, "User does not exist")
|
||||
@ -56,7 +56,7 @@ fun Routing.apiTimerRoutes() {
|
||||
}
|
||||
|
||||
val managers = transaction {
|
||||
user.managers.copy()
|
||||
user.managers.toList()
|
||||
}
|
||||
if(!managers.any { it.naverId == session?.id } && user.naverId != session?.id) {
|
||||
call.respond(HttpStatusCode.BadRequest, "User does not exist")
|
||||
|
Loading…
x
Reference in New Issue
Block a user