Skip to content

Commit

Permalink
Change group by clause from "day" to "created"
Browse files Browse the repository at this point in the history
  • Loading branch information
filipe1309 committed May 27, 2019
1 parent 9753289 commit c983f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/default/panels/trail/chart.php
Expand Up @@ -17,7 +17,7 @@
->where(['between', 'created',
date('Y-m-d 00:00:00', $startDate),
date('Y-m-d 23:59:59')])
->groupBy("day")->indexBy('day')->column();
->groupBy("created")->indexBy('day')->column();

// format dates properly
$formattedData = [];
Expand Down

0 comments on commit c983f96

Please sign in to comment.