add unit tests
This commit is contained in:
@@ -45,7 +45,7 @@ WHERE id like ?
|
||||
.ok()
|
||||
}
|
||||
|
||||
async fn find_by_name(db: &SqlitePool, name: String) -> Option<Self> {
|
||||
pub async fn find_by_name(db: &SqlitePool, name: String) -> Option<Self> {
|
||||
sqlx::query_as!(
|
||||
User,
|
||||
"
|
||||
|
Reference in New Issue
Block a user