@infrab4a/connect 3.10.0-beta.5 → 3.10.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3400,7 +3400,8 @@
|
|
|
3400
3400
|
return Object.keys(foreignKeyColumn).reduce(function (object, current) {
|
|
3401
3401
|
var _b;
|
|
3402
3402
|
var _a;
|
|
3403
|
-
|
|
3403
|
+
var foreignColumnName = AttributeOptionHelper.FindByAttribute(foreignKeyColumn[current], fields).columnName;
|
|
3404
|
+
return Object.assign(Object.assign({}, object), (_b = {}, _b[foreignColumnName] = (_a = data[attributeName]) === null || _a === void 0 ? void 0 : _a[current], _b));
|
|
3404
3405
|
}, Object.assign({}, result));
|
|
3405
3406
|
if (update && lodash.isObject(data[attributeName]) && !lodash.isNil(attributeFields) && !lodash.isDate(data[attributeName]))
|
|
3406
3407
|
return result;
|