mirror of https://github.com/statping/statping
parent
bc50771d8a
commit
25471c7587
|
@ -62,7 +62,7 @@ func apiGroupUpdateHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
vars := mux.Vars(r)
|
vars := mux.Vars(r)
|
||||||
group := core.SelectGroup(utils.ToInt(vars["id"]))
|
group := core.SelectGroup(utils.ToInt(vars["id"]))
|
||||||
if group == nil {
|
if group == nil {
|
||||||
sendErrorJson(errors.New("service not found"), w, r)
|
sendErrorJson(errors.New("group not found"), w, r)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
decoder := json.NewDecoder(r.Body)
|
decoder := json.NewDecoder(r.Body)
|
||||||
|
|
Loading…
Reference in New Issue