@koalarx/nest 3.1.30 → 3.1.32

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.
@@ -74,7 +74,7 @@ class RepositoryBase {
74
74
  }
75
75
  if (instance instanceof entity_base_1.EntityBase) {
76
76
  selectSchema[prop.name] = {
77
- select: this.getSelectRootPrismaSchema(instance.constructor),
77
+ select: this.getWhereByIdSchema(instance, true),
78
78
  };
79
79
  }
80
80
  else if (instance instanceof list_1.List) {
@@ -386,7 +386,7 @@ class RepositoryBase {
386
386
  return Promise.all([]);
387
387
  }
388
388
  return Promise.all(relationCreate.relations.map((relation) => {
389
- const relationPropName = this.getPropNameFromEntitySource(relation, relationCreate.entityInstance);
389
+ const relationPropName = this.getPropNameFromEntitySource(relation.constructor, relationCreate.entityInstance);
390
390
  if (relationPropName &&
391
391
  !(relation[relationPropName] instanceof list_1.List)) {
392
392
  relation[relationPropName] =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koalarx/nest",
3
- "version": "3.1.30",
3
+ "version": "3.1.32",
4
4
  "description": "",
5
5
  "author": "Igor D. Rangel",
6
6
  "license": "MIT",