mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: add audit diffing for all user editable types (#1413)
This commit is contained in:
@ -587,8 +587,8 @@ SET
|
||||
-- Remove all duplicates from the roles.
|
||||
roles = ARRAY(SELECT DISTINCT UNNEST($1 :: text[]))
|
||||
WHERE
|
||||
user_id = $2
|
||||
AND organization_id = $3
|
||||
user_id = $2
|
||||
AND organization_id = $3
|
||||
RETURNING user_id, organization_id, created_at, updated_at, roles
|
||||
`
|
||||
|
||||
|
@ -47,6 +47,6 @@ SET
|
||||
-- Remove all duplicates from the roles.
|
||||
roles = ARRAY(SELECT DISTINCT UNNEST(@granted_roles :: text[]))
|
||||
WHERE
|
||||
user_id = @user_id
|
||||
AND organization_id = @org_id
|
||||
user_id = @user_id
|
||||
AND organization_id = @org_id
|
||||
RETURNING *;
|
||||
|
Reference in New Issue
Block a user