From b0fd1077c9f3bf2182df70c7ae52c0b4cb947eed Mon Sep 17 00:00:00 2001 From: "Alex. Plokhikh" <a.plohih@iqdev.digital> Date: Tue, 16 Apr 2024 00:58:58 +0500 Subject: [PATCH] rm manula http status init in response --- src/Controller/SortPriceController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Controller/SortPriceController.php b/src/Controller/SortPriceController.php index 313d3dc..9f8a45d 100644 --- a/src/Controller/SortPriceController.php +++ b/src/Controller/SortPriceController.php @@ -22,9 +22,6 @@ class SortPriceController extends AbstractController #[Route('/sort/price', name: 'app_sort_price', methods: ['POST'])] public function index(PricesRequest $request, SortPriceAction $action): JsonResponse { - return new JsonResponse( - $action->act($request->serialise()), - 200 - ); + return new JsonResponse($action->act($request->serialise())); } } -- GitLab