Skip to content

Commit

Permalink
Merge pull request #262 from filipe1309/fix_groupby_sql_server
Browse files Browse the repository at this point in the history
Fix groupby sql server
  • Loading branch information
Blizzke committed Jun 18, 2019
2 parents 4a71d79 + c983f96 commit 2679030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/panels/RendersSummaryChartTrait.php
Expand Up @@ -46,7 +46,7 @@ protected function getChartData()
->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();

// replace defaults with data from db where available
foreach ($results as $date => $count) {
Expand Down
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 2679030

Please sign in to comment.