mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Update translations and fix some code.
This commit is contained in:
@@ -128,7 +128,7 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
$dbQuery->leftJoin('account_types', 'accounts.account_type_id', '=', 'account_types.id');
|
||||
$dbQuery->whereIn('account_types.type', $types);
|
||||
}
|
||||
|
||||
/** @var Account|null */
|
||||
return $dbQuery->first(['accounts.*']);
|
||||
}
|
||||
|
||||
@@ -147,6 +147,7 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
$query->whereIn('account_types.type', $types);
|
||||
}
|
||||
|
||||
/** @var Account|null */
|
||||
return $query->where('iban', $iban)->first(['accounts.*']);
|
||||
}
|
||||
|
||||
@@ -330,6 +331,7 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
*/
|
||||
public function getLocation(Account $account): ?Location
|
||||
{
|
||||
/** @var Location|null */
|
||||
return $account->locations()->first();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user