Skip to content

Commit

Permalink
Update listResourceWithFilter to use revision instead of id
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardDowling committed May 24, 2024
1 parent 0f60325 commit a048e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/local/generic/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit a048e9c

Please sign in to comment.