Fixing bug where message in response was unpopulated on successful requests

This commit is contained in:
kdeng00
2025-07-15 14:51:19 -04:00
parent 4c5bd1ccde
commit f152a51342
+1
View File
@@ -508,6 +508,7 @@ pub mod endpoint {
match super::cov_db::create(&pool, &coverart, &song.id).await { match super::cov_db::create(&pool, &coverart, &song.id).await {
Ok(id) => { Ok(id) => {
coverart.id = id; coverart.id = id;
response.message = String::from("Successful");
response.data.push(coverart); response.data.push(coverart);
(axum::http::StatusCode::OK, axum::Json(response)) (axum::http::StatusCode::OK, axum::Json(response))