Fix order query.

This commit is contained in:
James Cole 2020-08-01 06:45:20 +02:00
parent 65f54ed8f3
commit c26de3bdd2
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -239,7 +239,7 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
*/
public function getMaxOrder(): int
{
return (int)$this->user->piggyBanks()->max('order');
return (int)$this->user->piggyBanks()->max('piggy_banks.order');
}
/**