Skip to content

Commit

Permalink
fix api pls
Browse files Browse the repository at this point in the history
  • Loading branch information
CutestNekoAqua committed Jul 14, 2024
1 parent db382e9 commit ff80c06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct Data {
phone: String,
dob: String,
birthplace: String,
change_name: Option<bool>,
changename: Option<bool>,
prev_gender: String,
post_gender: String, // remove the x
post_fname: Option<String>,
Expand All @@ -36,7 +36,7 @@ async fn hello(data: web::Query<Data>) -> impl Responder {
data.phone.clone(),
data.dob.clone(),
data.birthplace.clone(),
data.change_name.clone().unwrap_or(false).clone(),
data.changename.clone().unwrap_or(false).clone(),
keep_gender.clone(),
data.prev_gender.clone(),
data.post_gender.clone().split("x").collect::<Vec<_>>()[1]
Expand Down

0 comments on commit ff80c06

Please sign in to comment.