Making realworld-postgres example compile

This commit is contained in:
Matthew Doty 2020-01-26 19:38:02 -05:00
parent f0c88da152
commit 1e5e1eceb4

View file

@ -62,7 +62,7 @@ RETURNING id, username, email
"#,
body.username,
body.email,
hash,
hash
)
.fetch_one(&mut tx)
.await
@ -106,7 +106,7 @@ SELECT username, email
FROM users
WHERE id = $1
"#,
user_id,
user_id
)
.fetch_one(&mut pool)
.await