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.cjs
CHANGED
|
@@ -1529,9 +1529,6 @@ var MikroOrmQueryService = class extends RelationQueryService {
|
|
|
1529
1529
|
await em.flush();
|
|
1530
1530
|
} else {
|
|
1531
1531
|
await em.remove(entity).flush();
|
|
1532
|
-
const metadata = this.em.getMetadata().get(this.repo.getEntityName());
|
|
1533
|
-
const primaryKey = metadata.primaryKeys[0];
|
|
1534
|
-
entity[primaryKey] = void 0;
|
|
1535
1532
|
}
|
|
1536
1533
|
return entity;
|
|
1537
1534
|
}
|