listAtRevision should always use the token from the RV if present

This commit is contained in:
Georges Chaudy 2024-07-09 21:41:30 +02:00
parent 1fc1dd0914
commit 07b804457e
No known key found for this signature in database
GPG Key ID: 0EE887FFCA1DB6EF

View File

@ -429,7 +429,7 @@ func (b *backend) listAtRevision(ctx context.Context, req *resource.ListRequest)
// Get the RV
rv := req.ResourceVersion
offset := int64(0)
if rv == 0 {
if req.NextPageToken != "" {
continueToken, err := GetContinueToken(req.NextPageToken)
if err != nil {
return nil, fmt.Errorf("get continue token: %w", err)