Skip to content

Commit

Permalink
fix: dynamodb optional json use (#287)
Browse files Browse the repository at this point in the history
After merging winglang/wing#6839
everything is passing:
<img width="681" alt="image" src="https://github.com/winglang/winglibs/assets/39455181/f885f8ef-62b0-4fba-b5ff-caef6ee61f16">
  • Loading branch information
tsuf239 authored Jul 11, 2024
1 parent 21f092c commit 18a1422
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dynamodb/dynamodb.extern.d.ts

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

4 changes: 2 additions & 2 deletions dynamodb/dynamodb.tf-aws.w
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct DynamoDBStreamEvent {

class Util {
extern "./dynamodb.mjs" pub inflight static unmarshall(
item: Json,
item: Json?,
options: Json?,
): Json;

Expand Down Expand Up @@ -79,7 +79,7 @@ pub class Table_tfaws impl dynamodb_types.ITable {
ApproximateCreationDateTime: record.dynamodb.ApproximateCreationDateTime,
Keys: Util.safeUnmarshall(record.dynamodb.Keys, {
wrapNumbers: true,
}),
})!,
NewImage: Util.safeUnmarshall(record.dynamodb.NewImage, {
wrapNumbers: true,
}),
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.1.16",
"version": "0.1.17",
"description": "DynamoDB library for Wing",
"author": {
"name": "Cristian Pallarés",
Expand Down

0 comments on commit 18a1422

Please sign in to comment.