feat: implemented handling webhooks
This commit is contained in:
+10
-2
@@ -19,9 +19,17 @@ RETURNING *;
|
||||
DELETE FROM users;
|
||||
|
||||
-- name: GetUserById :one
|
||||
SELECT id, created_at, updated_at, email, hashed_password FROM users
|
||||
SELECT id, created_at, updated_at, email, hashed_password, is_chirpy_red FROM users
|
||||
WHERE id = $1;
|
||||
|
||||
-- name: GetUserByEmail :one
|
||||
SELECT id, created_at, updated_at, email, hashed_password FROM users
|
||||
SELECT id, created_at, updated_at, email, hashed_password, is_chirpy_red FROM users
|
||||
WHERE email = $1;
|
||||
|
||||
-- name: UpgradeUser :one
|
||||
UPDATE users
|
||||
SET is_chirpy_red = TRUE
|
||||
WHERE id = $1
|
||||
RETURNING *;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user