From a048e9c921a8e3bcc7fcda628233c0fe9711c07c Mon Sep 17 00:00:00 2001 From: EdwardDowling Date: Fri, 24 May 2024 16:32:33 +0100 Subject: [PATCH] Update listResourceWithFilter to use revision instead of id --- lib/services/local/generic/generic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/local/generic/generic.go b/lib/services/local/generic/generic.go index 32c9069084782..02a7648d67f9e 100644 --- a/lib/services/local/generic/generic.go +++ b/lib/services/local/generic/generic.go @@ -234,7 +234,7 @@ func (s *Service[T]) ListResourcesWithFilter(ctx context.Context, pageSize int, limit, func(items []backend.Item) (stop bool, err error) { for _, item := range items { - resource, err := s.unmarshalFunc(item.Value, services.WithRevision(item.Revision), services.WithResourceID(item.ID)) + resource, err := s.unmarshalFunc(item.Value, services.WithRevision(item.Revision), services.WithRevision(item.Revision)) if err != nil { return false, trace.Wrap(err) }