icarus_models changes

This commit is contained in:
kdeng00
2025-10-11 19:35:12 -04:00
parent 6515e1e780
commit 6a73d1c4db
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -848,7 +848,7 @@ pub mod endpoint {
axum::extract::Path(id): axum::extract::Path<uuid::Uuid>,
) -> (axum::http::StatusCode, axum::response::Response) {
match super::cov_db::get_coverart(&pool, &id).await {
Ok(coverart) => match coverart.to_data() {
Ok(coverart) => match icarus_models::coverart::io::to_data(&coverart) {
Ok(data) => {
let bytes = axum::body::Bytes::from(data);
let mut response = bytes.into_response();