Fixing bug where message in response was unpopulated on successful requests (#157)

This commit was merged in pull request #157.
This commit is contained in:
KD
2025-07-15 15:10:51 -04:00
committed by GitHub
parent 4c5bd1ccde
commit 6c9e4809a9
+1
View File
@@ -508,6 +508,7 @@ pub mod endpoint {
match super::cov_db::create(&pool, &coverart, &song.id).await {
Ok(id) => {
coverart.id = id;
response.message = String::from("Successful");
response.data.push(coverart);
(axum::http::StatusCode::OK, axum::Json(response))