Fixes for bank transactions:

This commit is contained in:
David Bomba 2022-09-14 17:00:47 +10:00
parent 8f0fc3a303
commit f1efdb663e

View File

@ -79,6 +79,8 @@ class ProcessBankTransactions implements ShouldQueue
'accountId' => $this->bank_integration->bank_account_id, 'accountId' => $this->bank_integration->bank_account_id,
]; ];
nlog($data);
//Get transaction count object //Get transaction count object
$transaction_count = $yodlee->getTransactionCount($data); $transaction_count = $yodlee->getTransactionCount($data);
@ -91,6 +93,8 @@ class ProcessBankTransactions implements ShouldQueue
//if no transactions, update the from_date and move on //if no transactions, update the from_date and move on
if(count($transactions) == 0){ if(count($transactions) == 0){
nlog("no transactions returning");
$this->bank_integration->from_date = now(); $this->bank_integration->from_date = now();
$this->bank_integration->save(); $this->bank_integration->save();
return; return;