better-text #562

Merged
philipp merged 5 commits from better-text into staging 2024-05-30 11:12:04 +02:00
Showing only changes of commit 3c0b8e5114 - Show all commits

View File

@ -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,
" "