From 9119934c62cf8479f70069579351514be40f72b3 Mon Sep 17 00:00:00 2001 From: Ruslan Baidan Date: Tue, 15 Oct 2024 16:46:12 +0200 Subject: [PATCH] Fixed the controller to patch the soa scale comments. --- src/Controller/ApiSoaScaleCommentController.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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(); } }