mirror of
https://github.com/coder/coder.git
synced 2026-06-06 22:48:19 +00:00
feat: add PUT /api/v2/users/:user-id/suspend endpoint (#1154)
This commit is contained in:
@@ -90,3 +90,12 @@ ORDER BY
|
||||
LIMIT
|
||||
-- A null limit means "no limit", so -1 means return all
|
||||
NULLIF(@limit_opt :: int, -1);
|
||||
|
||||
-- name: UpdateUserStatus :one
|
||||
UPDATE
|
||||
users
|
||||
SET
|
||||
status = $2,
|
||||
updated_at = $3
|
||||
WHERE
|
||||
id = $1 RETURNING *;
|
||||
|
||||
Reference in New Issue
Block a user