Compare commits
3 Commits
96036b180b
...
e728c4dbea
Author | SHA1 | Date | |
---|---|---|---|
e728c4dbea | |||
1d9adf071f | |||
fcb4d65d32 |
@ -450,6 +450,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
|
||||||
|
Loading…
Reference in New Issue
Block a user