mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-01 11:47:14 -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
|
public function spentInPeriod(Collection $accounts, Carbon $start, Carbon $end): string
|
||||||
{
|
{
|
||||||
/** @var HasMany $query */
|
/** @var HasMany $query */
|
||||||
$query = $this->user->transactionJournals()->expanded()->sortCorrectly()
|
$query = $this->user->transactionJournals()->expanded()
|
||||||
->transactionTypes([TransactionType::WITHDRAWAL, TransactionType::TRANSFER]);
|
->transactionTypes([TransactionType::WITHDRAWAL, TransactionType::TRANSFER]);
|
||||||
if ($end >= $start) {
|
if ($end >= $start) {
|
||||||
$query->before($end)->after($start);
|
$query->before($end)->after($start);
|
||||||
|
Loading…
Reference in New Issue
Block a user