mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
add Session flows (2x)
- fix APIRoutes (debug Naver UserID)
This commit is contained in:
parent
fb3470ae83
commit
6b60e2c698
@ -41,7 +41,7 @@ fun Routing.wsSongListRoutes() {
|
||||
|
||||
webSocket("/songlist") {
|
||||
val session = call.sessions.get<UserSession>()
|
||||
val user = session?.id?.let { UserService.getUserWithNaverId( it.toLong() ) }
|
||||
val user = session?.id?.let { UserService.getUserWithNaverId( it ) }
|
||||
if (user == null) {
|
||||
close(CloseReason(CloseReason.Codes.CANNOT_ACCEPT, "Invalid SID"))
|
||||
return@webSocket
|
||||
|
Loading…
x
Reference in New Issue
Block a user