fix: add missing return when template version is not found (#1402)

This commit is contained in:
Asher
2022-05-11 17:58:22 -05:00
committed by GitHub
parent f4da5d4f3a
commit ce660f8bbc

View File

@ -180,6 +180,7 @@ func (api *api) postTemplatesByOrganization(rw http.ResponseWriter, r *http.Requ
httpapi.Write(rw, http.StatusNotFound, httpapi.Response{
Message: "template version does not exist",
})
return
}
if err != nil {
httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{