nestjs-query-mikro-orm 0.0.5 → 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 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
  }