check commit
This commit is contained in:
parent
9b46ec36dd
commit
3e236c5869
@ -156,10 +156,8 @@ class ReportsController extends ApiController
|
|||||||
$reportsModel->attributes = $params;
|
$reportsModel->attributes = $params;
|
||||||
$reportsModel->user_card_id = $userCard->id;
|
$reportsModel->user_card_id = $userCard->id;
|
||||||
|
|
||||||
// return $reportsModel;
|
|
||||||
|
|
||||||
$reports = $reportsModel->reportsByDate();
|
$reports = $reportsModel->reportsByDate();
|
||||||
return $reports;
|
return $reportsModel;
|
||||||
return ArrayHelper::toArray($reports , [
|
return ArrayHelper::toArray($reports , [
|
||||||
'common\models\Reports' => [
|
'common\models\Reports' => [
|
||||||
'date' => 'created_at',
|
'date' => 'created_at',
|
||||||
|
Loading…
Reference in New Issue
Block a user