mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-03-03 02:37:02 +00:00
Ensure archived/deleted yodlee accounts are not resync'd incorrectly:
This commit is contained in:
@@ -78,6 +78,11 @@ class YodleeController extends BaseController
|
||||
|
||||
foreach ($accounts as $account) {
|
||||
if ($bi = BankIntegration::where('bank_account_id', $account['id'])->where('company_id', $company->id)->first()) {
|
||||
|
||||
if($bi->deleted_at){
|
||||
continue;
|
||||
}
|
||||
|
||||
$bi->disabled_upstream = false;
|
||||
$bi->balance = $account['current_balance'];
|
||||
$bi->currency = $account['account_currency'];
|
||||
|
||||
Reference in New Issue
Block a user