Changing
pr CI / Test Suite (pull_request) Failing after 4m35s

This commit is contained in:
2026-08-15 11:36:31 -04:00
parent f3f6dcba94
commit 13015e0fe3
2 changed files with 62 additions and 60 deletions
+12 -29
View File
@@ -127,41 +127,24 @@ pub mod endpoint {
coverart.title = song.album.clone();
coverart.file_type = file_type.file_type;
coverart.data = data.raw_data;
coverart.file_key = new_file_key;
match coverart.save_to_filesystem() {
Ok(_) => {
match repo::coverart::create(
&pool,
&coverart,
&payload.song_id,
)
.await
{
Ok(id) => {
coverart.song_id = payload.song_id;
coverart.id = id;
println!("Cover Art created");
match repo::coverart::create(&pool, &coverart, &payload.song_id)
.await
{
Ok(id) => {
coverart.song_id = payload.song_id;
coverart.id = id;
println!("Cover Art created");
response.message = String::from("Successful");
response.data.push(coverart);
response.message = String::from("Successful");
response.data.push(coverart);
(axum::http::StatusCode::OK, axum::Json(response))
}
Err(err) => {
response.message = err.to_string();
(
axum::http::StatusCode::BAD_REQUEST,
axum::Json(response),
)
}
}
(axum::http::StatusCode::OK, axum::Json(response))
}
Err(err) => {
response.message = err.to_string();
(
axum::http::StatusCode::INTERNAL_SERVER_ERROR,
axum::Json(response),
)
(axum::http::StatusCode::BAD_REQUEST, axum::Json(response))
}
}
}