mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 12:51:13 +00:00
managers relation is fixed
This commit is contained in:
@@ -27,6 +27,6 @@ class User(id: EntityID<Int>) : IntEntity(id) {
|
||||
var liveAlertChannel by Users.liveAlertChannel
|
||||
var liveAlertMessage by Users.liveAlertMessage
|
||||
|
||||
val managers by User via UserManagers
|
||||
val suborinates by User via UserManagers
|
||||
val managers by User referrersOn UserManagers.user
|
||||
val subordinate by User referrersOn UserManagers.manager
|
||||
}
|
@@ -117,7 +117,7 @@ fun Routing.apiRoutes() {
|
||||
songConfig.disabled
|
||||
))
|
||||
|
||||
user.suborinates.forEach {
|
||||
user.subordinate.forEach {
|
||||
val subStatus = user.token?.let { it1 -> getStreamInfo(it1) }
|
||||
if(it.token == null) return@forEach
|
||||
if(subStatus?.content == null) return@forEach
|
||||
|
Reference in New Issue
Block a user