Skip to content

Commit

Permalink
Add test payload and fix to consider
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Jun 28, 2024
1 parent 012f878 commit cd4494b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/modules/Profiler/Interfaces/Jobs/StoreProfileHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@ public function invoke(array $payload): void
$profileUuid = Uuid::fromString($event['profile_uuid']);
$parents = [];

$edges = &$event['edges'];

!\array_key_exists('main()', $edges) && \array_key_exists('value', $edges) and $edges['main()'] = $edges['value'];
unset($edges['value']);

$batchSize = 0;
$i = 0;
foreach ($event['edges'] as $id => $edge) {
foreach ($edges as $id => $edge) {
$this->em->persist(
$edge = $this->edgeFactory->create(
profileUuid: $profileUuid,
Expand Down
1 change: 1 addition & 0 deletions tests/Unit/Modules/Profiler/Stub/without-main.json

Large diffs are not rendered by default.

0 comments on commit cd4494b

Please sign in to comment.