mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
managers relation is fixed
This commit is contained in:
parent
7784130be3
commit
447858a48c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user