@koalarx/nest 3.1.39 → 3.1.40

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.
@@ -412,7 +412,8 @@ class RepositoryBase {
412
412
  if (relationPropName &&
413
413
  !(relation[relationPropName] instanceof list_1.List)) {
414
414
  relation[relationPropName] =
415
- this.getConnectPrismaSchemaForRelation(relationUpdate.entityInstance, entity);
415
+ this.getConnectPrismaSchemaForRelation(relationUpdate.entityInstance, relation[relationPropName] ??
416
+ relationUpdate.schema.where);
416
417
  }
417
418
  return transaction[(0, KlString_1.toCamelCase)(relation.constructor.name)]
418
419
  .create({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koalarx/nest",
3
- "version": "3.1.39",
3
+ "version": "3.1.40",
4
4
  "description": "",
5
5
  "author": "Igor D. Rangel",
6
6
  "license": "MIT",