@@ -1830,6 +1830,7 @@ func (q *fakeQuerier) UpdateTemplateActiveVersionByID(_ context.Context, arg dat
1830
1830
continue
1831
1831
}
1832
1832
template .ActiveVersionID = arg .ActiveVersionID
1833
+ template .UpdatedAt = arg .UpdatedAt
1833
1834
q .templates [index ] = template
1834
1835
return nil
1835
1836
}
@@ -1845,6 +1846,7 @@ func (q *fakeQuerier) UpdateTemplateDeletedByID(_ context.Context, arg database.
1845
1846
continue
1846
1847
}
1847
1848
template .Deleted = arg .Deleted
1849
+ template .UpdatedAt = arg .UpdatedAt
1848
1850
q .templates [index ] = template
1849
1851
return nil
1850
1852
}
@@ -1876,7 +1878,7 @@ func (q *fakeQuerier) UpdateTemplateVersionDescriptionByJobID(_ context.Context,
1876
1878
continue
1877
1879
}
1878
1880
templateVersion .Readme = arg .Readme
1879
- templateVersion .UpdatedAt = database . Now ()
1881
+ templateVersion .UpdatedAt = arg . UpdatedAt
1880
1882
q .templateVersions [index ] = templateVersion
1881
1883
return nil
1882
1884
}
@@ -1910,6 +1912,7 @@ func (q *fakeQuerier) UpdateWorkspaceAgentConnectionByID(_ context.Context, arg
1910
1912
agent .FirstConnectedAt = arg .FirstConnectedAt
1911
1913
agent .LastConnectedAt = arg .LastConnectedAt
1912
1914
agent .DisconnectedAt = arg .DisconnectedAt
1915
+ agent .UpdatedAt = arg .UpdatedAt
1913
1916
q .provisionerJobAgents [index ] = agent
1914
1917
return nil
1915
1918
}
@@ -1927,7 +1930,7 @@ func (q *fakeQuerier) UpdateWorkspaceAgentKeysByID(_ context.Context, arg databa
1927
1930
1928
1931
agent .WireguardNodePublicKey = arg .WireguardNodePublicKey
1929
1932
agent .WireguardDiscoPublicKey = arg .WireguardDiscoPublicKey
1930
- agent .UpdatedAt = database . Now ()
1933
+ agent .UpdatedAt = arg . UpdatedAt
1931
1934
q .provisionerJobAgents [index ] = agent
1932
1935
return nil
1933
1936
}
0 commit comments