Commit 06ac412f authored by Александр Плохих's avatar Александр Плохих 🌔
Browse files

chenge array indexation

parent ac83168a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,6 +21,6 @@ class DiffDaysController extends AbstractController
    public function index(DiffDaysRequest $request, DiffDaysAction $action): Response
    {
        $array = $request->serialise();
        return new JsonResponse($action->act($array[0], $array[1]));
        return new JsonResponse($action->act($array['startDate'], $array['endDate']));
    }
}