Skip to content

Commit

Permalink
Use normalized record for upsert
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Mar 31, 2020
1 parent 0500c2d commit df16520
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dynamo_query/dynamo_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,9 @@ def batch_upsert(
"dt_modified": now_str,
},
)
self.normalize_record(new_record)
self.validate_record_attributes(new_record)
update_data_table.add_record(new_record)
normalized_record = self.normalize_record(new_record)
self.validate_record_attributes(normalized_record)
update_data_table.add_record(normalized_record)

results: DataTable[DynamoRecord] = DynamoQuery.build_batch_update_item(
logger=self._logger,
Expand Down

0 comments on commit df16520

Please sign in to comment.