Loading src/TimestampRepository.php +7 −6 Original line number Diff line number Diff line Loading @@ -136,12 +136,13 @@ class TimestampRepository implements TimestampRepositoryInterface { public function updateBlockchainInfo(string $remote_id, string $address, string $blockchain, string $transactionId, string $transactionLink) { /** @var \Drupal\wordproof\Entity\Timestamp $entity */ $entities = $this->entityTypeManager->getStorage('wordproof_timestamp')->loadByProperties(['remote_id' => (int) $remote_id]); $entity = array_shift($entities); foreach ($entities as $entity) { $entity->setTransactionAddress($address); $entity->setTransactionBlockchain($blockchain); $entity->setTransactionId($transactionId); $entity->setTransactionLink($transactionLink); $entity->save(); } } } Loading
src/TimestampRepository.php +7 −6 Original line number Diff line number Diff line Loading @@ -136,12 +136,13 @@ class TimestampRepository implements TimestampRepositoryInterface { public function updateBlockchainInfo(string $remote_id, string $address, string $blockchain, string $transactionId, string $transactionLink) { /** @var \Drupal\wordproof\Entity\Timestamp $entity */ $entities = $this->entityTypeManager->getStorage('wordproof_timestamp')->loadByProperties(['remote_id' => (int) $remote_id]); $entity = array_shift($entities); foreach ($entities as $entity) { $entity->setTransactionAddress($address); $entity->setTransactionBlockchain($blockchain); $entity->setTransactionId($transactionId); $entity->setTransactionLink($transactionLink); $entity->save(); } } }