mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Update API endpoints and account autocomplete.
This commit is contained in:
@@ -302,6 +302,7 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
;
|
||||
if ('' !== $query) {
|
||||
// split query on spaces just in case:
|
||||
// TODO this will always fail because it searches for AND.
|
||||
$parts = explode(' ', $query);
|
||||
foreach ($parts as $part) {
|
||||
$search = sprintf('%%%s%%', $part);
|
||||
@@ -384,4 +385,9 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
#[\Override] public function getAccountBalances(Account $account): Collection
|
||||
{
|
||||
return $account->accountBalances;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user