From 8579aafd0a77511ce7fdd7599b9b75b0c0cefe4e Mon Sep 17 00:00:00 2001 From: dal Date: Thu, 13 Mar 2025 14:30:38 -0600 Subject: [PATCH] asset type --- api/libs/handlers/src/favorites/favorites_utils.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/libs/handlers/src/favorites/favorites_utils.rs b/api/libs/handlers/src/favorites/favorites_utils.rs index 8e661a904..1a36ccaf9 100644 --- a/api/libs/handlers/src/favorites/favorites_utils.rs +++ b/api/libs/handlers/src/favorites/favorites_utils.rs @@ -18,7 +18,7 @@ use middleware::AuthenticatedUser; #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)] pub struct FavoriteIdAndType { pub id: Uuid, - #[serde(rename = "type")] + #[serde(rename = "asset_type")] pub type_: AssetType, } @@ -32,7 +32,7 @@ pub struct CollectionFavorites { pub collection_id: Uuid, pub collection_name: String, pub assets: Vec, - #[serde(rename = "type")] + #[serde(rename = "asset_type")] pub type_: AssetType, } @@ -40,7 +40,7 @@ pub struct CollectionFavorites { pub struct FavoriteObject { pub id: Uuid, pub name: String, - #[serde(rename = "type")] + #[serde(rename = "asset_type")] pub type_: AssetType, }