tsk-179: Modify status code of song queue endpoint #226

Merged
kdeng00 merged 5 commits from tsk-179 into main 2025-10-29 15:20:04 -04:00
Showing only changes of commit d868b60a30 - Show all commits
+6 -3
View File
@@ -163,14 +163,17 @@ pub mod endpoint {
&file_name,
&crate::repo::queue::song::status::PENDING.to_string(),
)
.await {
.await
{
Ok(queued_song) => {
results.push(queued_song);
}
Err(err) => {
response.message = err.to_string();
return (axum::http::StatusCode::INTERNAL_SERVER_ERROR,
axum::Json(response));
return (
axum::http::StatusCode::INTERNAL_SERVER_ERROR,
axum::Json(response),
);
}
}
} else {