feat: Add update profile endpoint (#916)

This commit is contained in:
Bruno Quaresma
2022-04-12 14:05:21 +00:00
committed by GitHub
parent db9d5b7e8c
commit 63d1465019
8 changed files with 264 additions and 0 deletions
+11
View File
@@ -40,3 +40,14 @@ INSERT INTO
)
VALUES
($1, $2, $3, $4, FALSE, $5, $6, $7, $8) RETURNING *;
-- name: UpdateUserProfile :one
UPDATE
users
SET
email = $2,
"name" = $3,
username = $4,
updated_at = $5
WHERE
id = $1 RETURNING *;