mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 15:28:21 +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") {
|
webSocket("/songlist") {
|
||||||
val session = call.sessions.get<UserSession>()
|
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) {
|
if (user == null) {
|
||||||
close(CloseReason(CloseReason.Codes.CANNOT_ACCEPT, "Invalid SID"))
|
close(CloseReason(CloseReason.Codes.CANNOT_ACCEPT, "Invalid SID"))
|
||||||
return@webSocket
|
return@webSocket
|
||||||
|
Loading…
x
Reference in New Issue
Block a user