From 3e236c5869d26aea4c1e9851449774aa7842c57f Mon Sep 17 00:00:00 2001 From: iIronside Date: Thu, 19 Jan 2023 17:08:16 +0300 Subject: [PATCH] check commit --- frontend/modules/api/controllers/ReportsController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/modules/api/controllers/ReportsController.php b/frontend/modules/api/controllers/ReportsController.php index 2aca223..84786ec 100755 --- a/frontend/modules/api/controllers/ReportsController.php +++ b/frontend/modules/api/controllers/ReportsController.php @@ -156,10 +156,8 @@ class ReportsController extends ApiController $reportsModel->attributes = $params; $reportsModel->user_card_id = $userCard->id; -// return $reportsModel; - $reports = $reportsModel->reportsByDate(); - return $reports; + return $reportsModel; return ArrayHelper::toArray($reports , [ 'common\models\Reports' => [ 'date' => 'created_at',