Skip to content

Commit

Permalink
from-dynamodb-tweaks-2 (#364)
Browse files Browse the repository at this point in the history
* from-dynamodb-tweaks-2
* incremented version
  • Loading branch information
jgilbert01 authored Jun 26, 2024
1 parent c27d5a2 commit 84b4759
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-lambda-stream",
"version": "1.0.8",
"version": "1.0.9",
"description": "Create stream processors with AWS Lambda functions.",
"keywords": [
"aws",
Expand Down
4 changes: 2 additions & 2 deletions src/from/dynamodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ export const outReplicas = (record) => {
export const outGlobalTableExtraModify = (record) => {
const { NewImage, OldImage } = record.dynamodb;

// v2
if (NewImage && NewImage.awsregion && OldImage && !OldImage.awsregion) {
// v1/v2 transition
if (NewImage && NewImage.awsregion && OldImage && (!OldImage.awsregion && !OldImage['aws:rep:updateregion'])) {
// skip
return false;
}
Expand Down

0 comments on commit 84b4759

Please sign in to comment.