mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-29 10:21:25 -06:00
Do not need to sort. Fix MySQL 5.7 compatibility.
This commit is contained in:
parent
bb58f605f7
commit
fb649779d6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user