mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
MySQL 5.7 compatible grouping. [skip ci]
This commit is contained in:
parent
cf1b98e569
commit
0ea14eb987
@ -26,7 +26,6 @@ class Steam
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param \FireflyIII\Models\Account $account
|
* @param \FireflyIII\Models\Account $account
|
||||||
@ -187,8 +186,8 @@ class Steam
|
|||||||
$list = [];
|
$list = [];
|
||||||
|
|
||||||
$set = Auth::user()->transactions()
|
$set = Auth::user()->transactions()
|
||||||
->whereIn('account_id', $accounts)
|
->whereIn('transactions.account_id', $accounts)
|
||||||
->groupBy('account_id')
|
->groupBy(['transactions.account_id', 'transaction_journals.user_id'])
|
||||||
->get(['transactions.account_id', DB::raw('MAX(`transaction_journals`.`date`) as `max_date`')]);
|
->get(['transactions.account_id', DB::raw('MAX(`transaction_journals`.`date`) as `max_date`')]);
|
||||||
|
|
||||||
foreach ($set as $entry) {
|
foreach ($set as $entry) {
|
||||||
|
Loading…
Reference in New Issue
Block a user