Update API endpoints and account autocomplete.

This commit is contained in:
James Cole
2024-05-12 13:31:33 +02:00
parent e49dbefddd
commit 73fdbb6202
11 changed files with 394 additions and 110 deletions

View File

@@ -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;
}
}