Optimise query. [skip ci]

This commit is contained in:
James Cole
2016-05-17 16:47:43 +02:00
parent 2538b4a885
commit ce78c8993f
2 changed files with 43 additions and 11 deletions

View File

@@ -166,7 +166,7 @@ class ReportController extends Controller
*/
if ($start->between($first, $last) || $end->between($first, $last)) {
$exists = true;
$journals = $repos->journalsInPeriod($accounts, [], $start, $end);
$journals = $repos->journalsInPeriod(new Collection([$account]), [], $start, $end);
}
/*