Update song queue changes #145

Merged
kdeng00 merged 5 commits from update_song_queue-changes into v0.2 2025-06-28 16:45:25 -04:00
Showing only changes of commit 04d48515e9 - Show all commits
+4 -1
View File
@@ -743,16 +743,19 @@ pub mod endpoint {
let raw_data: Vec<u8> = data.to_vec();
match song_queue::update(&pool, &raw_data, &id).await {
Ok(_queued_data) => {
Ok(_) => {
response.subject = String::from("Successful");
response.data.push(id);
(axum::http::StatusCode::OK, axum::Json(response))
}
Err(err) => {
response.subject = String::from("Error");
response.message = err.to_string();
(axum::http::StatusCode::BAD_REQUEST, axum::Json(response))
}
}
} else {
response.subject = String::from("Error");
response.message = String::from("No data provided");
(axum::http::StatusCode::NOT_FOUND, axum::Json(response))
}