Code cleanup
This commit is contained in:
parent
3e389bf142
commit
f0af0ff4a7
1 changed files with 0 additions and 2 deletions
|
@ -84,8 +84,6 @@ async fn create_user(
|
||||||
let username = payload.username;
|
let username = payload.username;
|
||||||
let password = payload.password;
|
let password = payload.password;
|
||||||
|
|
||||||
//let user_key = format!("user:{username}:key");
|
|
||||||
|
|
||||||
let row: (i64,) = sqlx::query_as("SELECT COUNT(id) FROM users WHERE username = $1")
|
let row: (i64,) = sqlx::query_as("SELECT COUNT(id) FROM users WHERE username = $1")
|
||||||
.bind(&username)
|
.bind(&username)
|
||||||
.fetch_one(&db_pool)
|
.fetch_one(&db_pool)
|
||||||
|
|
Loading…
Reference in a new issue