fix (listing): return all resources from listing requests (#3278)

This commit is contained in:
Jim authored and GitHub committed 2023-06-05 12:53:59 -04:00
1 parent 8159ddb08e
commit 2b3e50ebdd
15 files changed
+21 -20

No files matched your search

@@ -633,7 +633,7 @@ func (s Service) listFromRepo(ctx context.Context, catalogId string, opt ...host
if err != nil {
return nil, nil, err
}
sl, err := repo.ListSets(ctx, catalogId)
sl, err := repo.ListSets(ctx, catalogId, static.WithLimit(-1))
if err != nil {
return nil, nil, errors.Wrap(ctx, err, op)
}
@@ -645,6 +645,7 @@ func (s Service) listFromRepo(ctx context.Context, catalogId string, opt ...host
if err != nil {
return nil, nil, err
}
opt = append(opt, host.WithLimit(-1))
sl, hsplg, err := repo.ListSets(ctx, catalogId, opt...)
if err != nil {
return nil, nil, errors.Wrap(ctx, err, op)