diff --git a/src/Controller/ApiSoaScaleCommentController.php b/src/Controller/ApiSoaScaleCommentController.php index 6d25b63..a3651e2 100644 --- a/src/Controller/ApiSoaScaleCommentController.php +++ b/src/Controller/ApiSoaScaleCommentController.php @@ -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(); } }