mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix: update template updated_at value (#2729)
* fix: update template updated_at value * use Go time for all updated_at updates
This commit is contained in:
@ -73,7 +73,8 @@ VALUES
|
||||
UPDATE
|
||||
templates
|
||||
SET
|
||||
active_version_id = $2
|
||||
active_version_id = $2,
|
||||
updated_at = $3
|
||||
WHERE
|
||||
id = $1;
|
||||
|
||||
@ -81,7 +82,8 @@ WHERE
|
||||
UPDATE
|
||||
templates
|
||||
SET
|
||||
deleted = $2
|
||||
deleted = $2,
|
||||
updated_at = $3
|
||||
WHERE
|
||||
id = $1;
|
||||
|
||||
|
@ -89,6 +89,6 @@ UPDATE
|
||||
template_versions
|
||||
SET
|
||||
readme = $2,
|
||||
updated_at = now()
|
||||
updated_at = $3
|
||||
WHERE
|
||||
job_id = $1;
|
||||
|
@ -65,10 +65,10 @@ VALUES
|
||||
UPDATE
|
||||
workspace_agents
|
||||
SET
|
||||
updated_at = now(),
|
||||
first_connected_at = $2,
|
||||
last_connected_at = $3,
|
||||
disconnected_at = $4
|
||||
disconnected_at = $4,
|
||||
updated_at = $5
|
||||
WHERE
|
||||
id = $1;
|
||||
|
||||
@ -76,8 +76,8 @@ WHERE
|
||||
UPDATE
|
||||
workspace_agents
|
||||
SET
|
||||
updated_at = now(),
|
||||
wireguard_node_public_key = $2,
|
||||
wireguard_disco_public_key = $3
|
||||
wireguard_disco_public_key = $3,
|
||||
updated_at = $4
|
||||
WHERE
|
||||
id = $1;
|
||||
|
Reference in New Issue
Block a user