Merge pull request 'fix error' (#559) from fix-user-find-bug into staging
Reviewed-on: #559
This commit is contained in:
commit
e004d81ca1
@ -486,6 +486,8 @@ WHERE id like ?
|
||||
}
|
||||
|
||||
pub async fn find_by_name(db: &SqlitePool, name: &str) -> Option<Self> {
|
||||
let name = name.trim().to_lowercase();
|
||||
|
||||
sqlx::query_as!(
|
||||
Self,
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user