message: fix(issuer-api): fix certificate created transaction
diff: @@ -84,9 +84,8 @@ export class CertificatesCreatedHandler implements IEventHandler<CertificatesCre
  await queryRunner.startTransaction();
  try {
  - await Promise.all(
  - newCertificates.map(async (cert) => {
  - await this.repository.save({
  + const certificateEntities = newCertificates.map((cert) =>
  + this.repository.create({
  id: cert.id,
  blockchain: blockchainProperties,
  deviceId: cert.deviceId,
  @@ -98,12 +97,13 @@ export class CertificatesCreatedHandler implements IEventHandler<CertificatesCre
  issuedPrivately: !!privateInfo || !!unminedCommitment,
  latestCommitment: unminedCommitment ?? latestCommitment,
  metadata: cert.metadata
  - });
  })
  );
  + await queryRunner.manager.save(certificateEntities);
  +
  if (unminedCommitment) {
  - await this.unminedCommitmentRepository.delete(txHash);
  + await queryRunner.manager.delete(UnminedCommitment, { txHash });
  }
  await queryRunner.commitTransaction();
  