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:
Abhineet Jain
2022-06-30 12:14:51 +00:00
committed by GitHub
parent 7df5827767
commit 9df6bc7ba1
9 changed files with 51 additions and 28 deletions
+4 -4
View File
@@ -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;