check commit

This commit is contained in:
iIronside 2023-01-19 17:08:16 +03:00
parent 9b46ec36dd
commit 3e236c5869

View File

@ -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',