Compare commits

...

2 Commits

Author SHA1 Message Date
3c0b8e5114 Merge pull request 'fix error' () from fix-user-find-bug into main
Reviewed-on: 
2024-05-28 15:04:50 +02:00
6d5ff5404b fix error 2024-05-28 15:04:06 +02:00

@ -486,6 +486,8 @@ WHERE id like ?
} }
pub async fn find_by_name(db: &SqlitePool, name: &str) -> Option<Self> { pub async fn find_by_name(db: &SqlitePool, name: &str) -> Option<Self> {
let name = name.trim().to_lowercase();
sqlx::query_as!( sqlx::query_as!(
Self, Self,
" "