mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
fix: add missing return when template version is not found (#1402)
This commit is contained in:
@ -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{
|
||||
|
Reference in New Issue
Block a user