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:
@ -96,8 +96,9 @@ func (api *API) deleteTemplate(rw http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
err = api.Database.UpdateTemplateDeletedByID(r.Context(), database.UpdateTemplateDeletedByIDParams{
|
||||
ID: template.ID,
|
||||
Deleted: true,
|
||||
ID: template.ID,
|
||||
Deleted: true,
|
||||
UpdatedAt: database.Now(),
|
||||
})
|
||||
if err != nil {
|
||||
httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{
|
||||
|
Reference in New Issue
Block a user