tsk-212: Identify type of CoverArt #214

Merged
kdeng00 merged 11 commits from tsk-212 into main 2025-10-21 22:24:52 -04:00
Showing only changes of commit aa0173c179 - Show all commits
+3 -3
View File
@@ -561,7 +561,7 @@ pub mod endpoint {
} }
}; };
if !super::helper::is_coverart_file_type_valid(&file_type) { if !super::helper::is_coverart_file_type_valid(&file_type.file_type) {
response.message = format!("CoverArt file type not supported: {file_type:?}"); response.message = format!("CoverArt file type not supported: {file_type:?}");
( (
axum::http::StatusCode::INTERNAL_SERVER_ERROR, axum::http::StatusCode::INTERNAL_SERVER_ERROR,
@@ -569,7 +569,7 @@ pub mod endpoint {
) )
} else { } else {
println!( println!(
"Received file '{}' (name = '{}', content-type = '{}', size = {}, file-type = {})", "Received file '{}' (name = '{}', content-type = '{}', size = {}, file-type = {:?})",
file_name, file_name,
name, name,
content_type, content_type,
@@ -577,7 +577,7 @@ pub mod endpoint {
file_type file_type
); );
match super::db::insert(&pool, &raw_data, &file_type).await { match super::db::insert(&pool, &raw_data, &file_type.file_type).await {
Ok(id) => { Ok(id) => {
response.message = String::from("Successful"); response.message = String::from("Successful");
response.data.push(id); response.data.push(id);