From f6d6c2bd77e77a07a9aab114520d442c10c49835 Mon Sep 17 00:00:00 2001 From: 112batuhan Date: Sat, 7 Dec 2024 14:32:13 +0300 Subject: [PATCH] feat: changing rename to alias to reflect frontend change --- src/handlers/influence.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers/influence.rs b/src/handlers/influence.rs index e500d98..79f3c20 100644 --- a/src/handlers/influence.rs +++ b/src/handlers/influence.rs @@ -27,13 +27,13 @@ pub struct Description { } /// `InfluenceCreationOptions` type. Optional fields to override defaults -/// TODO: for the love of god, let's fix this rename later +/// TODO:fixed the rename, remove alias once the frontend pr has merged #[derive(Deserialize, JsonSchema)] pub struct InfluenceCreationOptions { pub influence_type: Option, pub description: Option, pub beatmaps: Option>, - #[serde(rename = "userId")] + #[serde(alias = "userId")] pub user_id: String, }