Skip to content

Commit

Permalink
Fix populate command (#10)
Browse files Browse the repository at this point in the history
* Fixed populate command issue

* Fixed populate command issue

* Fixed populate command issue
  • Loading branch information
paullla authored Sep 23, 2023
1 parent 8eec576 commit d0147b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Bridge/Elasticsearch/ElasticsearchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function bulkCreate(array $items, string $index, array $groups = []): voi
$params[] = [
'index' => [
'_index' => $index,
'_id' => $item->getId(),
'_id' => method_exists($item, 'getId')? $item->getId() : null,
],
];
$params[] = $normalizedItem;
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/message_handlers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
Locastic\Loggastic\MessageHandler\PopulateCurrentDataTrackersHandler:
arguments:
- '@Doctrine\Persistence\ManagerRegistry'
- '@Locastic\Loggastic\Factory\ActivityLogInputFactoryInterface'
- '@Locastic\Loggastic\Factory\CurrentDataTrackerInputFactoryInterface'
- '@serializer.normalizer.object'
- '@Locastic\Loggastic\Bridge\Elasticsearch\ElasticsearchService'
- '@Locastic\Loggastic\Bridge\Elasticsearch\Context\ElasticsearchContextFactoryInterface'
Expand Down

0 comments on commit d0147b4

Please sign in to comment.