diff --git a/models/resources/resource_accessor.go b/models/resources/resource_accessor.go index cc35619..9318fad 100644 --- a/models/resources/resource_accessor.go +++ b/models/resources/resource_accessor.go @@ -34,7 +34,6 @@ func NewAccessor[T ResourceInterface](t tools.DataType, request *tools.APIReques /* * Nothing special here, just the basic CRUD operations */ - func (dca *resourceMongoAccessor[T]) DeleteOne(id string) (utils.DBObject, int, error) { return utils.GenericDeleteOne(id, dca) } @@ -96,7 +95,7 @@ func (abs *resourceMongoAccessor[T]) getResourceFilter(search string) *dbs.Filte return &dbs.Filters{ Or: map[string][]dbs.Filter{ // filter by like name, short_description, description, owner, url if no filters are provided "abstractintanciatedresource.abstractresource.abstractobject.name": {{Operator: dbs.LIKE.String(), Value: search}}, - "abstractintanciatedresource.abstractresource.abstractobject.type": {{Operator: dbs.LIKE.String(), Value: search}}, + "abstractintanciatedresource.abstractresource.type": {{Operator: dbs.LIKE.String(), Value: search}}, "abstractintanciatedresource.abstractresource.short_description": {{Operator: dbs.LIKE.String(), Value: search}}, "abstractintanciatedresource.abstractresource.description": {{Operator: dbs.LIKE.String(), Value: search}}, "abstractintanciatedresource.abstractresource.owners.name": {{Operator: dbs.LIKE.String(), Value: search}},