Skip to content

Commit

Permalink
Fix older ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Sep 27, 2023
1 parent 3b9cf37 commit 66cf79e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/aws-record/record/item_operations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ def _perform_save(opts)
put_opts = {
table_name: self.class.table_name,
item: _build_item_for_save
}.merge(prevent_overwrite_expression, put_item_options)
}.merge(prevent_overwrite_expression)
.merge(put_item_options)
begin
dynamodb_client.put_item(put_opts)
rescue Aws::DynamoDB::Errors::ConditionalCheckFailedException => e
Expand Down

0 comments on commit 66cf79e

Please sign in to comment.