Skip to content

Commit 0a69141

Browse files
jredvilledarrenklein
authored andcommitted
Upcase return_consumed_capacity values on batch calls
BatchGetItem and BatchPutItem were not upcasing the values of return_consumed_capacity. This fixes that
1 parent a36d957 commit 0a69141

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ex_aws/dynamo.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ defmodule ExAws.Dynamo do
526526

527527
data =
528528
opts
529+
|> add_upcased_opt(opts, :return_consumed_capacity)
529530
|> camelize_keys
530531
|> Map.merge(%{"RequestItems" => request_items})
531532

@@ -593,6 +594,8 @@ defmodule ExAws.Dynamo do
593594

594595
data =
595596
opts
597+
|> add_upcased_opt(opts, :return_item_collection_metrics)
598+
|> add_upcased_opt(opts, :return_consumed_capacity)
596599
|> camelize_keys
597600
|> Map.merge(%{"RequestItems" => request_items})
598601

0 commit comments

Comments
 (0)