mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Improve test coverage.
This commit is contained in:
@@ -518,7 +518,9 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
*/
|
||||
public function searchAccount(string $query, array $types): Collection
|
||||
{
|
||||
$dbQuery = $this->user->accounts()->with(['accountType']);
|
||||
$dbQuery = $this->user->accounts()
|
||||
->where('active', 1)
|
||||
->with(['accountType']);
|
||||
if ('' !== $query) {
|
||||
$search = sprintf('%%%s%%', $query);
|
||||
$dbQuery->where('name', 'LIKE', $search);
|
||||
|
Reference in New Issue
Block a user