Skip to content

Commit

Permalink
removing null values (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdtaylor committed May 7, 2020
1 parent e1e6c8c commit f540190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ const run = async (filename, action) => {
const seed = JSON.parse(data.Body.toString());
console.log('finished transforming seed data');
const documentClient = new AWS.DynamoDB.DocumentClient();
const documentClient = new AWS.DynamoDB.DocumentClient({
convertEmptyValues: true
});
console.log('sending data to dynamodb');
for(let i = 0; i < seed.length;i++) {
await documentClient[action]({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-cdk-dynamodb-seeder",
"version": "1.36.0",
"version": "1.36.1",
"description": "A simple CDK JSON seeder for DynamoDB",
"scripts": {
"build": "jsii",
Expand Down

0 comments on commit f540190

Please sign in to comment.