Code cleanup

This commit is contained in:
Martin Brodbeck 2025-01-07 19:21:57 +01:00
parent 3e389bf142
commit f0af0ff4a7

View file

@ -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)