@infrab4a/connect 3.10.0-beta.5 → 3.10.0-beta.7

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.
@@ -1286,6 +1286,10 @@
1286
1286
  });
1287
1287
  return Category;
1288
1288
  }(BaseModel));
1289
+ __decorate([
1290
+ classTransformer.Type(function () { return Category; }),
1291
+ __metadata("design:type", Category)
1292
+ ], Category.prototype, "parent", void 0);
1289
1293
  __decorate([
1290
1294
  classTransformer.Type(function () { return Filter; }),
1291
1295
  __metadata("design:type", Array)
@@ -3400,7 +3404,8 @@
3400
3404
  return Object.keys(foreignKeyColumn).reduce(function (object, current) {
3401
3405
  var _b;
3402
3406
  var _a;
3403
- return (Object.assign(Object.assign({}, object), (_b = {}, _b[foreignKeyColumn[current]] = (_a = data[attributeName]) === null || _a === void 0 ? void 0 : _a[current], _b)));
3407
+ var foreignColumnName = AttributeOptionHelper.FindByAttribute(foreignKeyColumn[current], fields).columnName;
3408
+ return Object.assign(Object.assign({}, object), (_b = {}, _b[foreignColumnName] = (_a = data[attributeName]) === null || _a === void 0 ? void 0 : _a[current], _b));
3404
3409
  }, Object.assign({}, result));
3405
3410
  if (update && lodash.isObject(data[attributeName]) && !lodash.isNil(attributeFields) && !lodash.isDate(data[attributeName]))
3406
3411
  return result;