Skip to content

Commit faa8937

Browse files
committed
WIP
1 parent 459af04 commit faa8937

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/encrypted/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ func (ec *EncryptedClient) GetItem(ctx context.Context, input *dynamodb.GetItemI
170170
}
171171

172172
// Query executes a Query operation on DynamoDB and decrypts the returned items.
173-
func (ec *EncryptedClient) Query(ctx context.Context, input *dynamodb.QueryInput) (*dynamodb.QueryOutput, error) {
173+
func (ec *EncryptedClient) Query(ctx context.Context, input *dynamodb.QueryInput, optFns ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error) {
174174
paginator := dynamodb.NewQueryPaginator(ec.Client, input)
175175

176176
var decryptedItems []map[string]types.AttributeValue
177177
var lastEvaluatedKey map[string]types.AttributeValue
178178

179179
for paginator.HasMorePages() {
180-
output, err := paginator.NextPage(ctx)
180+
output, err := paginator.NextPage(ctx, optFns...)
181181
if err != nil {
182182
return nil, fmt.Errorf("error querying encrypted items: %v", err)
183183
}

0 commit comments

Comments
 (0)