Skip to content

Commit

Permalink
EXP-220: Fixed creating customer imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vlmed committed Aug 6, 2024
1 parent e4cf0f2 commit d500476
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use Bloomreach\EngagementConnector\Model\InitialExport\Action\Configure\Import\Request\BuilderInterface;
use Bloomreach\EngagementConnector\Model\InitialExport\Action\Configure\Import\Request\IdMappingGetter;
use stdClass;

/**
* The class is responsible for building request body for Customer entity type
Expand Down Expand Up @@ -39,7 +40,7 @@ public function __construct(IdMappingGetter $idMappingGetter)
*/
public function build(string $entityType, array $body = []): array
{
$body['destination'] = ['customer_destination' => []];
$body['destination'] = ['customer_destination' => new stdClass()];
$body['mapping']['column_mapping']['id_mappings'] = $this->idMappingGetter->execute();

return $body;
Expand Down

0 comments on commit d500476

Please sign in to comment.