Skip to content

Commit

Permalink
Allow for undefined OldImage in Dynamo stream events (#139606)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmartin-coforma authored Apr 16, 2024
1 parent 7dd680b commit c3dc679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/carts-bigmac-streams/libs/kafka-source-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class KafkaSourceLib {
const { eventID, eventName } = record;
const dynamoRecord = {
NewImage: this.unmarshall(dynamodb.NewImage),
OldImage: this.unmarshall(dynamodb.OldImage),
OldImage: this.unmarshall(dynamodb.OldImage ?? {}),
Keys: this.unmarshall(dynamodb.Keys),
};
return {
Expand Down

0 comments on commit c3dc679

Please sign in to comment.