mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: add group_ids filter to /groups endpoint (#14688)
Allow filtering groups by IDs.
This commit is contained in:
@@ -56,6 +56,10 @@ WHERE
|
||||
groups.name = ANY(@group_names)
|
||||
ELSE true
|
||||
END
|
||||
AND CASE WHEN array_length(@group_ids :: uuid[], 1) > 0 THEN
|
||||
groups.id = ANY(@group_ids)
|
||||
ELSE true
|
||||
END
|
||||
;
|
||||
|
||||
-- name: InsertGroup :one
|
||||
|
||||
Reference in New Issue
Block a user