SongType.NEXT to songList.isEmpty() true/false.

This commit is contained in:
dalbodeule 2024-08-14 22:08:58 +09:00
parent 5498135257
commit c2e546da88
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65

View File

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