Ensure archived/deleted yodlee accounts are not resync'd incorrectly:

This commit is contained in:
David Bomba
2026-01-12 16:11:44 +11:00
parent 4697ab08c9
commit 86af7367b2

View File

@@ -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'];