removed comment

This commit is contained in:
Philippe Loctaux 2023-05-06 20:27:39 +02:00
parent d803c9f546
commit 2e055e2037

View file

@ -65,21 +65,6 @@ impl User {
})?; })?;
Ok(()) Ok(())
// DatabaseUsers::set_username(conn, self.id.as_ref(), username.as_ref())
// .await
// .map_err(|e| match e {
// DatabaseError::UniqueConstraint(column) => {
// if &column == "username" {
// Error::UsernameNotAvailable(username.into())
// } else {
// Error::ColumnNotAvailable(column)
// }
// }
// _ => e.into(),
// })?;
//
// Ok(())
} }
pub async fn get_by_id( pub async fn get_by_id(