Merge pull request #75 from dalbodeule/develop

SongType.NEXT to songList.isEmpty() true/false.
This commit is contained in:
JinU Choi 2024-08-14 22:10:33 +09:00 committed by GitHub
commit 5ff78f4532
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,8 +125,9 @@ fun Routing.wsSongListRoutes() {
if(songList.isNotEmpty()) {
val song = songList[0]
SongListService.deleteSong(user, song.uid, song.name)
dispatcher.post(
SongEvent(
}
dispatcher.post(SongEvent(
user.token!!,
SongType.NEXT,
null,
@ -135,9 +136,7 @@ fun Routing.wsSongListRoutes() {
null,
null,
null
)
)
}
))
}
}
is Frame.Ping -> send(Frame.Pong(frame.data))