From 475a570186ae6d6d8e7e7487b14cf5f065db40f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Budzy=C5=84ski?= Date: Mon, 16 Dec 2024 16:43:15 +0100 Subject: [PATCH] small ref --- pkg/sdk/poc/generator/operation.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/sdk/poc/generator/operation.go b/pkg/sdk/poc/generator/operation.go index f553126679..a4f6ffb7dd 100644 --- a/pkg/sdk/poc/generator/operation.go +++ b/pkg/sdk/poc/generator/operation.go @@ -181,9 +181,9 @@ func (i *Interface) ShowByIdOperationWithNoFiltering() *Interface { // ShowByIdOperationWithFiltering adds a ShowByID operation to the interface with filtering. Should be used for objects that implement filtering options e.g. Like or In. func (i *Interface) ShowByIdOperationWithFiltering(filter ShowByIDFilteringKind, filtering ...ShowByIDFilteringKind) *Interface { - op := newNoSqlOperation(string(OperationKindShowByID)) - op.ObjectInterface = i - op.withFiltering(append([]ShowByIDFilteringKind{filter}, filtering...)...) + op := newNoSqlOperation(string(OperationKindShowByID)). + withObjectInterface(i). + withFiltering(append(filtering, filter)...) i.Operations = append(i.Operations, op) return i }