@koalarx/nest 3.1.5 → 3.1.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.
@@ -100,7 +100,7 @@ class RepositoryBase {
100
100
  relationDeletes.push({
101
101
  modelName: (0, KlString_1.toCamelCase)(modelName),
102
102
  entityInstance,
103
- schema: { where: { id: item._id } },
103
+ schema: { id: item._id },
104
104
  relations: [],
105
105
  });
106
106
  });
@@ -235,7 +235,7 @@ class RepositoryBase {
235
235
  }));
236
236
  })),
237
237
  ...relationUpdates.map((relation) => transaction[relation.modelName].update(relation.schema)),
238
- ...relationDeletes.map((relation) => this.removeMany(relation.schema)),
238
+ ...relationDeletes.map((relation) => transaction[relation.modelName].deleteMany({ where: relation.schema })),
239
239
  ]);
240
240
  }
241
241
  context(transactionalClient) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koalarx/nest",
3
- "version": "3.1.5",
3
+ "version": "3.1.7",
4
4
  "description": "",
5
5
  "author": "Igor D. Rangel",
6
6
  "license": "MIT",