allow-membershippdf-upload #483

Merged
philipp merged 4 commits from allow-membershippdf-upload into main 2024-05-06 13:46:41 +02:00
Showing only changes of commit b4023c1ea8 - Show all commits

View File

@ -434,6 +434,7 @@ ORDER BY last_access DESC
} }
pub async fn create(db: &SqlitePool, name: &str) -> bool { pub async fn create(db: &SqlitePool, name: &str) -> bool {
let name = name.trim();
sqlx::query!("INSERT INTO USER(name) VALUES (?)", name) sqlx::query!("INSERT INTO USER(name) VALUES (?)", name)
.execute(db) .execute(db)
.await .await