Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
j-chad committed Sep 30, 2023
1 parent a778edf commit 7ce097e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/api/auth/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub async fn create_new_user(conn: &mut Connection, user: NewUser) -> Result<Use
.get_result(conn)
.await
.map_err(|e| {
warn!(email = user.email, "failed to register new user: {:?}", e);
warn!(email = user.email, "failed to register new user: {}", e);
APIErrorBuilder::new(UserAlreadyExists)
.cause(e)
.detail("If you already have an account, try logging in.")
Expand Down Expand Up @@ -86,7 +86,7 @@ pub async fn generate_new_refresh_token(
) -> Result<RefreshToken, APIError> {
delete_refresh_token_if_exists(conn, user_id).await?;

diesel::insert_into(crate::db::schema::refresh_tokens::table)
diesel::insert_into(refresh_tokens::table)
.values(&NewRefreshToken { user_id })
.get_result::<RefreshToken>(conn)
.await
Expand Down

0 comments on commit 7ce097e

Please sign in to comment.