mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: do not query user_link for deleted accounts (#12112)
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
-- name: GetUserLinkByLinkedID :one
|
||||
SELECT
|
||||
*
|
||||
user_links.*
|
||||
FROM
|
||||
user_links
|
||||
INNER JOIN
|
||||
users ON user_links.user_id = users.id
|
||||
WHERE
|
||||
linked_id = $1;
|
||||
linked_id = $1
|
||||
AND
|
||||
deleted = false;
|
||||
|
||||
-- name: GetUserLinkByUserIDLoginType :one
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user