Compare commits
2 Commits
41b5aff329
...
e004d81ca1
Author | SHA1 | Date | |
---|---|---|---|
e004d81ca1 | |||
6d5ff5404b |
@ -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