Formatting

This commit is contained in:
kdeng00
2025-04-28 20:52:35 -04:00
parent 19c34da7ba
commit 720651843a
+6 -3
View File
@@ -38,7 +38,9 @@ pub mod request {
} }
pub mod fetch_metadata { pub mod fetch_metadata {
#[derive(Debug, Default, serde::Deserialize, serde::Serialize, sqlx::FromRow, sqlx::Decode)] #[derive(
Debug, Default, serde::Deserialize, serde::Serialize, sqlx::FromRow, sqlx::Decode,
)]
pub struct Params { pub struct Params {
pub id: Option<uuid::Uuid>, pub id: Option<uuid::Uuid>,
pub song_queue_id: Option<uuid::Uuid>, pub song_queue_id: Option<uuid::Uuid>,
@@ -180,7 +182,7 @@ pub mod metadata_queue {
.try_get("metadata") .try_get("metadata")
.map_err(|_e| sqlx::Error::RowNotFound) .map_err(|_e| sqlx::Error::RowNotFound)
.unwrap(), .unwrap(),
// serde_json::Value::new(), // serde_json::Value::new(),
created_at: row created_at: row
.try_get("created_at") .try_get("created_at")
.map_err(|_e| sqlx::Error::RowNotFound) .map_err(|_e| sqlx::Error::RowNotFound)
@@ -248,7 +250,8 @@ pub mod endpoint {
} }
} }
} else { } else {
match super::metadata_queue::get_with_song_queue_id(&pool, &song_queue_id).await { match super::metadata_queue::get_with_song_queue_id(&pool, &song_queue_id).await
{
Ok(item) => { Ok(item) => {
response.message = String::from("Successful"); response.message = String::from("Successful");
response.data.push(item); response.data.push(item);