From fb649779d6e7f3569152a170daeb372691ca374b Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 16 Sep 2016 09:31:40 +0200 Subject: [PATCH] Do not need to sort. Fix MySQL 5.7 compatibility. --- app/Repositories/Account/AccountRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php index 64f62ed842..bb675ef09b 100644 --- a/app/Repositories/Account/AccountRepository.php +++ b/app/Repositories/Account/AccountRepository.php @@ -580,7 +580,7 @@ class AccountRepository implements AccountRepositoryInterface public function spentInPeriod(Collection $accounts, Carbon $start, Carbon $end): string { /** @var HasMany $query */ - $query = $this->user->transactionJournals()->expanded()->sortCorrectly() + $query = $this->user->transactionJournals()->expanded() ->transactionTypes([TransactionType::WITHDRAWAL, TransactionType::TRANSFER]); if ($end >= $start) { $query->before($end)->after($start);