@koalarx/nest 3.1.21 → 3.1.22

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.
@@ -72,7 +72,7 @@ class RepositoryBase {
72
72
  select: this.getSelectRootPrismaSchema(instance.constructor),
73
73
  };
74
74
  }
75
- else if (!(instance instanceof list_1.List)) {
75
+ else {
76
76
  selectSchema[prop.name] = true;
77
77
  }
78
78
  });
@@ -323,7 +323,7 @@ class RepositoryBase {
323
323
  return;
324
324
  }
325
325
  cache.set(cacheKey, item);
326
- items.push(this.loadRelationForEntity(item, entityInstance, cache));
326
+ items.push(this.loadRelationForEntity(this.getWhereByIdSchema(new entityInstance(), item), entityInstance, cache));
327
327
  });
328
328
  relationQueries.push(Promise.all(items));
329
329
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koalarx/nest",
3
- "version": "3.1.21",
3
+ "version": "3.1.22",
4
4
  "description": "",
5
5
  "author": "Igor D. Rangel",
6
6
  "license": "MIT",