Removed comments
This commit is contained in:
parent
e8c169f325
commit
3de2319fd7
@ -12,11 +12,4 @@ pub async fn find_user_by_email(conn: &MySqlPool, email: &String, app: &String)
|
|||||||
}
|
}
|
||||||
pub async fn _find_user_by_id(conn: &MySqlPool, id: &i32) -> Result<User, sqlx::Error> {
|
pub async fn _find_user_by_id(conn: &MySqlPool, id: &i32) -> Result<User, sqlx::Error> {
|
||||||
sqlx::query_file_as!(User, "sql/schema/user/find_with_id.sql", id).fetch_one(conn).await
|
sqlx::query_file_as!(User, "sql/schema/user/find_with_id.sql", id).fetch_one(conn).await
|
||||||
}
|
}
|
||||||
//pub async fn _update_user(conn: &mut MySqlConnection, user_to_modify: &User) -> Result<(), sqlx::Error>{
|
|
||||||
// Ok(())
|
|
||||||
//}
|
|
||||||
/*pub async fn find_user_by_id(_conn: &mut MySqlConnection, _id: i32) -> Result<(), ()>{
|
|
||||||
//println!("{:?}", user::select(user, (id, name, time_created)).load::<User>(_conn));
|
|
||||||
Ok(())
|
|
||||||
}*/
|
|
Loading…
Reference in New Issue
Block a user