Skip to content

Commit

Permalink
Fixed the params names to "cacheTargetedRisk"
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanbaidan committed Mar 23, 2024
1 parent c2fd490 commit 41997df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Controller/ApiAnrRecommendationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public function __construct(
private GetRecommendationsInputFormatter $getRecommendationsInputFormatter,
private PostRecommendationDataInputValidator $postRecommendationDataInputValidator,
private PatchRecommendationDataInputValidator $patchRecommendationDataInputValidator
) {}
) {
}

public function getList()
{
Expand Down
6 changes: 3 additions & 3 deletions src/Service/AnrRecommendationRiskService.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function getTreatmentPlan(Entity\Anr $anr): array
$instanceRiskData = [
'id' => $instanceRisk->getId(),
'cacheNetRisk' => $instanceRisk->getCacheNetRisk(),
'cacheTargetRisk' => $instanceRisk->getCacheTargetedRisk(),
'cacheTargetedRisk' => $instanceRisk->getCacheTargetedRisk(),
'comment' => $instanceRisk->getComment(),
];
} else {
Expand Down Expand Up @@ -551,15 +551,15 @@ private function getPreparedRecommendationRiskData(
'id' => $recommendationRisk->getInstanceRisk()->getId(),
'kindOfMeasure' => $recommendationRisk->getInstanceRisk()->getKindOfMeasure(),
'cacheMaxRisk' => $recommendationRisk->getInstanceRisk()->getCacheMaxRisk(),
'cacheTargetRisk' => $recommendationRisk->getInstanceRisk()->getCacheTargetedRisk(),
'cacheTargetedRisk' => $recommendationRisk->getInstanceRisk()->getCacheTargetedRisk(),
];
}
if ($recommendationRisk->getInstanceRiskOp()) {
$recommendationRiskData['instanceRiskOp'] = array_merge([
'id' => $recommendationRisk->getInstanceRiskOp()->getId(),
'kindOfMeasure' => $recommendationRisk->getInstanceRiskOp()->getKindOfMeasure(),
'cacheNetRisk' => $recommendationRisk->getInstanceRiskOp()->getCacheNetRisk(),
'cacheTargetRisk' => $recommendationRisk->getInstanceRiskOp()->getCacheTargetedRisk(),
'cacheTargetedRisk' => $recommendationRisk->getInstanceRiskOp()->getCacheTargetedRisk(),
], $recommendationRisk->getInstanceRiskOp()->getRiskCacheLabels());
}
}
Expand Down

0 comments on commit 41997df

Please sign in to comment.