From 9f4f8e84aadd78a4ecb5a58035fc895938b89e8b Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Sat, 24 Aug 2024 14:32:38 +0900 Subject: [PATCH] some fix on WSSongListRoutes - add delUrl to SongResponse --- .../mori/chzzk_bot/webserver/routes/WSSongListRoutes.kt | 3 ++- .../space/mori/chzzk_bot/webserver/routes/WSSongRoutes.kt | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/routes/WSSongListRoutes.kt b/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/routes/WSSongListRoutes.kt index 57792b4..2e07ac1 100644 --- a/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/routes/WSSongListRoutes.kt +++ b/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/routes/WSSongListRoutes.kt @@ -219,7 +219,8 @@ fun Routing.wsSongListRoutes() { it.uid, it.reqUid, it.current?.toSerializable(), - it.next?.toSerializable() + it.next?.toSerializable(), + it.delUrl )) } } diff --git a/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/routes/WSSongRoutes.kt b/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/routes/WSSongRoutes.kt index 4a87751..d379cf1 100644 --- a/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/routes/WSSongRoutes.kt +++ b/webserver/src/main/kotlin/space/mori/chzzk_bot/webserver/routes/WSSongRoutes.kt @@ -125,7 +125,8 @@ fun Routing.wsSongRoutes() { it.uid, it.reqUid, it.current?.toSerializable(), - it.next?.toSerializable() + it.next?.toSerializable(), + it.delUrl )) } } @@ -137,7 +138,7 @@ fun Routing.wsSongRoutes() { it.uid, null, null, - null + null, )) } } @@ -161,4 +162,5 @@ data class SongResponse( val reqUid: String?, val current: SerializableYoutubeVideo? = null, val next: SerializableYoutubeVideo? = null, + val delUrl: String? = null )