Skip to content

Commit

Permalink
fix: change the wrong statuscode
Browse files Browse the repository at this point in the history
  • Loading branch information
Eraxyso authored Sep 19, 2024
1 parent 17dc701 commit b7d5d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub async fn put_me_email(
let email = body
.email
.parse::<Address>()
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
.map_err(|_| StatusCode::BAD_REQUEST)?;

let jwt = state
.encode_email_update_jwt(user_id, &body.email)
Expand Down

0 comments on commit b7d5d80

Please sign in to comment.