Skip to content

Commit

Permalink
feat: changing rename to alias to reflect frontend change
Browse files Browse the repository at this point in the history
  • Loading branch information
112batuhan committed Dec 7, 2024
1 parent 4873857 commit f6d6c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/influence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8>,
pub description: Option<String>,
pub beatmaps: Option<Vec<u32>>,
#[serde(rename = "userId")]
#[serde(alias = "userId")]
pub user_id: String,
}

Expand Down

0 comments on commit f6d6c2b

Please sign in to comment.