mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd): notify when workspace is marked as dormant (#13868)
This commit is contained in:
@@ -646,7 +646,7 @@ WHERE
|
||||
RETURNING
|
||||
workspaces.*;
|
||||
|
||||
-- name: UpdateWorkspacesDormantDeletingAtByTemplateID :exec
|
||||
-- name: UpdateWorkspacesDormantDeletingAtByTemplateID :many
|
||||
UPDATE workspaces
|
||||
SET
|
||||
deleting_at = CASE
|
||||
@@ -658,7 +658,8 @@ SET
|
||||
WHERE
|
||||
template_id = @template_id
|
||||
AND
|
||||
dormant_at IS NOT NULL;
|
||||
dormant_at IS NOT NULL
|
||||
RETURNING *;
|
||||
|
||||
-- name: UpdateTemplateWorkspacesLastUsedAt :exec
|
||||
UPDATE workspaces
|
||||
|
||||
Reference in New Issue
Block a user