Add support to property mapper for left-over properties without mapping rules

master
Sven Slootweg 7 years ago
parent e5e352247b
commit 34842e4803

@ -62,6 +62,13 @@ module.exports = function createPropertyMapper(propertyMap) {
return Object.assign({
value: propertyValue
}, mappings[propertyName]);
} else {
return {
sourceProperty: propertyName,
destinationObject: "_",
destinationProperty: propertyName,
value: propertyValue
}
}
}).filter((item) => {
return (item != null);

Loading…
Cancel
Save