fix(users): add missing password_hash bind parameter in user create
- INSERT statement had only 4 placeholders but 5 columns specified - Add placeholder for password_hash and bind it properly
This commit is contained in:
parent
52ed6d7975
commit
d29c755899
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ impl UserRepository {
|
|||
let user = sqlx::query_as::<_, User>(
|
||||
r#"
|
||||
INSERT INTO users (first_name, last_name, email, password_hash, email_verified, phone_verified)
|
||||
VALUES ($1, $2, $3, false, false)
|
||||
VALUES ($1, $2, $3, $4, false, false)
|
||||
RETURNING
|
||||
id, email, password_hash, first_name, last_name,
|
||||
email_verified, phone_verified, status,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue