From 9750723ba8001edd68a914424aa7a92f4c9e2bca Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Sat, 28 Jun 2025 16:25:33 -0400 Subject: [PATCH] Changed PATCH /api/v2/song/queue/{id} endpoint Modified the response body. Will just return a list of song queue id --- src/callers/song.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/callers/song.rs b/src/callers/song.rs index ed9b13b..87b1a51 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -123,7 +123,7 @@ pub mod response { #[derive(Default, serde::Deserialize, serde::Serialize)] pub struct Response { pub message: String, - pub data: Vec>, + pub data: Vec, } } @@ -743,8 +743,8 @@ pub mod endpoint { let raw_data: Vec = data.to_vec(); match song_queue::update(&pool, &raw_data, &id).await { - Ok(queued_data) => { - response.data.push(queued_data); + Ok(_queued_data) => { + response.data.push(id); (axum::http::StatusCode::OK, axum::Json(response)) } Err(err) => {