@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.
- package/bundles/infrab4a-connect.umd.js +6 -1
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/domain/catalog/models/category.js +5 -1
- package/esm2015/infra/hasura-graphql/mixins/helpers/graphql-field.helper.js +6 -2
- package/fesm2015/infrab4a-connect.js +9 -1
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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;
|