Compare commits
2 Commits
a8c0282918
...
3c0b8e5114
Author | SHA1 | Date | |
---|---|---|---|
3c0b8e5114 | |||
6d5ff5404b |
@ -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,
|
||||||
"
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user