Skip to content

Commit

Permalink
fix(dynamodb)!: stream records format is unmarshalled (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
eladcon authored Apr 1, 2024
1 parent 0440bb8 commit 602972b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
18 changes: 3 additions & 15 deletions dynamodb/dynamodb.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,9 @@ const processStreamRecords = async (client, StreamArn, handler, options) => {
dynamodb: {
ApproximateCreationDateTime:
record.dynamodb.ApproximateCreationDateTime,
Keys: record.dynamodb.Keys
? unmarshall(record.dynamodb.Keys, {
wrapNumbers: true,
})
: undefined,
NewImage: record.dynamodb.NewImage
? unmarshall(record.dynamodb.NewImage, {
wrapNumbers: true,
})
: undefined,
OldImage: record.dynamodb.OldImage
? unmarshall(record.dynamodb.OldImage, {
wrapNumbers: true,
})
: undefined,
Keys: record.dynamodb.Keys,
NewImage: record.dynamodb.NewImage,
OldImage: record.dynamodb.OldImage,
SequenceNumber: record.dynamodb.SequenceNumber,
SizeBytes: record.dynamodb.SizeBytes,
StreamViewType: record.dynamodb.StreamViewType,
Expand Down
2 changes: 1 addition & 1 deletion dynamodb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@winglibs/dynamodb",
"version": "0.0.8",
"version": "0.1.0",
"description": "DynamoDB library for Wing",
"author": {
"name": "Cristian Pallarés",
Expand Down

0 comments on commit 602972b

Please sign in to comment.