diff --git a/internal/service/handlers/update_event_type.go b/internal/service/handlers/update_event_type.go index b0d5280..2e15498 100644 --- a/internal/service/handlers/update_event_type.go +++ b/internal/service/handlers/update_event_type.go @@ -39,7 +39,7 @@ func UpdateEventType(w http.ResponseWriter, r *http.Request) { } typeModel := models.ResourceToModel(req.Data.Attributes) - res, err := EventTypesQ(r).Update(typeModel.ForUpdate()) + res, err := EventTypesQ(r).FilterByNames(typeModel.Name).Update(typeModel.ForUpdate()) if err != nil { Log(r).WithError(err).Error("Failed to update event type") ape.RenderErr(w, problems.InternalError())