Function get_user_by_id

Source
pub async fn get_user_by_id(
    user_id: String,
    db_pool: &PgPool,
) -> Result<User, Error>
Expand description

Returns a user from the database with the given user_id.