feat: add templates delete command (#1443)

This commit is contained in:
Colin Adler
2022-05-13 22:54:32 +00:00
committed by GitHub
parent 19335df0eb
commit fe7645b8a9
5 changed files with 185 additions and 0 deletions
+1
View File
@@ -18,6 +18,7 @@ import (
// Returns a single template.
func (api *api) template(rw http.ResponseWriter, r *http.Request) {
template := httpmw.TemplateParam(r)
workspaceCounts, err := api.Database.GetWorkspaceOwnerCountsByTemplateIDs(r.Context(), []uuid.UUID{template.ID})
if errors.Is(err, sql.ErrNoRows) {
err = nil