nestjs-query-mikro-orm 0.0.6 → 0.0.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/dist/index.cjs +0 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +0 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1523,9 +1523,6 @@ var MikroOrmQueryService = class extends RelationQueryService {
|
|
|
1523
1523
|
await em.flush();
|
|
1524
1524
|
} else {
|
|
1525
1525
|
await em.remove(entity).flush();
|
|
1526
|
-
const metadata = this.em.getMetadata().get(this.repo.getEntityName());
|
|
1527
|
-
const primaryKey = metadata.primaryKeys[0];
|
|
1528
|
-
entity[primaryKey] = void 0;
|
|
1529
1526
|
}
|
|
1530
1527
|
return entity;
|
|
1531
1528
|
}
|