Formatting

This commit is contained in:
kdeng00
2025-04-26 19:30:41 -04:00
parent 43d84bcd30
commit 0b491667a6
+4 -10
View File
@@ -129,8 +129,7 @@ pub mod metadata_queue {
});
match result {
Ok(row) => {
Ok(MetadataQueue{
Ok(row) => Ok(MetadataQueue {
id: row
.try_get("id")
.map_err(|_e| sqlx::Error::RowNotFound)
@@ -147,8 +146,7 @@ pub mod metadata_queue {
.try_get("song_queue_id")
.map_err(|_e| sqlx::Error::RowNotFound)
.unwrap(),
})
}
}),
Err(_err) => Err(sqlx::Error::RowNotFound),
}
}
@@ -183,14 +181,10 @@ pub mod endpoint {
}
}
pub async fn fetch_metadata(
axum::Extension(pool): axum::Extension<sqlx::PgPool>,
axum::extract::Query(params): axum::extract::Query<super::request::fetch_metadata::Params>
) -> (
StatusCode,
Json<super::response::fetch_metadata::Response>,
) {
axum::extract::Query(params): axum::extract::Query<super::request::fetch_metadata::Params>,
) -> (StatusCode, Json<super::response::fetch_metadata::Response>) {
let mut response = super::response::fetch_metadata::Response::default();
let song_queue_id: uuid::Uuid = match params.song_queue_id {
Some(id) => id,