Commit a7b2aeac authored by Bertrand PINEL's avatar Bertrand PINEL

Small update to cope with empty attributes not to persist n DynamoDB

parent 45305ad8
......@@ -169,7 +169,9 @@ function generateRowId(subid) {
};
// Adding attributes as column in dynamoDb
for (var prop in attrs) {
content[prop] = attrs[prop];
if (attrs[prop] != null && attrs[prop].length>0)
// Empty field cannot be persisted
content[prop] = attrs[prop];
}
// Dealing with relationships if any
if (relations){
......
......@@ -160,7 +160,9 @@ function generateRowId(subid) {
};
// Adding attributes as column in dynamoDb
for (var prop in attrs) {
content[prop] = attrs[prop];
if (attrs[prop] != null && attrs[prop].length>0)
// Empty field cannot be persisted
content[prop] = attrs[prop];
}
// Dealing with relationships if any
if (relations){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment