Skip to content

Commit

Permalink
fix: fix status code
Browse files Browse the repository at this point in the history
  • Loading branch information
kenken714 committed Oct 26, 2024
1 parent 9788f80 commit 32819a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler/authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub async fn sign_up(
let email = state
.get_email_by_email_jwt(&body.token)
.await
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
.map_err(|_| StatusCode::UNAUTHORIZED)?;
let id = state
.create_user_by_email(&body.user_name, &email)
.await
Expand Down

0 comments on commit 32819a2

Please sign in to comment.