Skip to content

Commit

Permalink
NOBUG - fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronpettit committed Oct 9, 2024
1 parent 6210f7d commit bf37098
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions __tests__/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ async function createDB(items, tableName = TABLE_NAME) {
for (const item of items) {
await dynamodb.putItem({
TableName: tableName,
Item: marshall(item)
Item: marshall(item, {
removeUndefinedValues: true
})
});
}

Expand Down Expand Up @@ -76,7 +78,9 @@ async function putDB(data, tableName = TABLE_NAME) {
for (const item of data) {
await dynamodb.putItem({
TableName: tableName,
Item: marshall(item)
Item: marshall(item, {
removeUndefinedValues: true
})
});
}
}
Expand Down

0 comments on commit bf37098

Please sign in to comment.