mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 21:01:14 +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 liveAlertChannel by Users.liveAlertChannel
|
||||||
var liveAlertMessage by Users.liveAlertMessage
|
var liveAlertMessage by Users.liveAlertMessage
|
||||||
|
|
||||||
val managers by User via UserManagers
|
val managers by User referrersOn UserManagers.user
|
||||||
val suborinates by User via UserManagers
|
val subordinate by User referrersOn UserManagers.manager
|
||||||
}
|
}
|
@@ -117,7 +117,7 @@ fun Routing.apiRoutes() {
|
|||||||
songConfig.disabled
|
songConfig.disabled
|
||||||
))
|
))
|
||||||
|
|
||||||
user.suborinates.forEach {
|
user.subordinate.forEach {
|
||||||
val subStatus = user.token?.let { it1 -> getStreamInfo(it1) }
|
val subStatus = user.token?.let { it1 -> getStreamInfo(it1) }
|
||||||
if(it.token == null) return@forEach
|
if(it.token == null) return@forEach
|
||||||
if(subStatus?.content == null) return@forEach
|
if(subStatus?.content == null) return@forEach
|
||||||
|
Reference in New Issue
Block a user