diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/models/user.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/models/user.rs b/server/src/models/user.rs index d7a836f..72fd56a 100644 --- a/server/src/models/user.rs +++ b/server/src/models/user.rs @@ -15,10 +15,10 @@ impl User { let pool = unsafe { get_client() }; let rec = sqlx::query!( r#" -INSERT INTO users (email, password) -VALUES ( $1, $2 ) -RETURNING id - "#, + INSERT INTO users (email, password) + VALUES ( $1, $2 ) + RETURNING id + "#, user.email, user.password ) |