mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Merge pull request #1380 from paul999/fix_1378
iban returned from bunq might be empty.
This commit is contained in:
@@ -320,6 +320,8 @@ class BunqRoutine implements RoutineInterface
|
||||
private function convertToAccount(LabelMonetaryAccount $party, string $expectedType): Account
|
||||
{
|
||||
Log::debug('in convertToAccount()');
|
||||
|
||||
if ($party->getIban() !== null) {
|
||||
// find opposing party by IBAN first.
|
||||
$result = $this->accountRepository->findByIbanNull($party->getIban(), [$expectedType]);
|
||||
if (null !== $result) {
|
||||
@@ -337,6 +339,8 @@ class BunqRoutine implements RoutineInterface
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// create new account:
|
||||
$data = [
|
||||
'user_id' => $this->job->user_id,
|
||||
|
Reference in New Issue
Block a user