From 6d5ff5404b82d05f75db214417a6ae9fc4b8b704 Mon Sep 17 00:00:00 2001 From: philipp Date: Tue, 28 May 2024 15:04:06 +0200 Subject: [PATCH] fix error --- src/model/user.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/model/user.rs b/src/model/user.rs index 4ce2087..e12110d 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -486,6 +486,8 @@ WHERE id like ? } pub async fn find_by_name(db: &SqlitePool, name: &str) -> Option { + let name = name.trim().to_lowercase(); + sqlx::query_as!( Self, "