Skip to content

Commit

Permalink
Fixed the controller to patch the soa scale comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanbaidan committed Oct 15, 2024
1 parent 7fa6885 commit 9119934
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Controller/ApiSoaScaleCommentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,8 @@ public function patchList($data)
{
/** @var Anr $anr */
$anr = $this->getRequest()->getAttribute('anr');
$language = $this->params()->fromQuery("language");

$this->soaScaleCommentService->createOrHideSoaScaleComments($anr, $data);

return $this->getSuccessfulJsonResponse([
'data' => $this->soaScaleCommentService->getSoaScaleComments($anr, $language),
]);
return $this->getSuccessfulJsonResponse();
}
}

0 comments on commit 9119934

Please sign in to comment.