diff --git a/modules/acquia_contenthub_publisher/src/PublisherTracker.php b/modules/acquia_contenthub_publisher/src/PublisherTracker.php index 90a7b85..5cac3df 100644 --- a/modules/acquia_contenthub_publisher/src/PublisherTracker.php +++ b/modules/acquia_contenthub_publisher/src/PublisherTracker.php @@ -139,15 +139,14 @@ class PublisherTracker { $created = $modified; } $values = [ - 'entity_type' => $entity->getEntityTypeId(), - 'entity_id' => $entity->id(), 'entity_uuid' => $entity->uuid(), 'status' => $status, 'created' => $created, 'modified' => $modified, 'hash' => $hash, ]; - return $this->database->insert(self::EXPORT_TRACKING_TABLE) + return $this->database->merge('acquia_contenthub_publisher_export_tracking') + ->keys(['entity_type', 'entity_id'], [$entity->getEntityTypeId(), $entity->id()]) ->fields($values) ->execute(); }