mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for bank transactions
This commit is contained in:
parent
dd4d5534fb
commit
23711acc94
@ -60,14 +60,14 @@ class BankTransactionSync implements ShouldQueue
|
|||||||
|
|
||||||
public function syncTransactions()
|
public function syncTransactions()
|
||||||
{
|
{
|
||||||
$a = Account::with('bank_integrations')->where('auto_sync', true)->whereNotNull('bank_integration_account_id')->cursor()->each(function ($account){
|
$a = Account::with('bank_integrations')->whereNotNull('bank_integration_account_id')->cursor()->each(function ($account){
|
||||||
|
|
||||||
// $queue = Ninja::isHosted() ? 'bank' : 'default';
|
// $queue = Ninja::isHosted() ? 'bank' : 'default';
|
||||||
|
|
||||||
if($account->isPaid() && $account->plan == 'enterprise')
|
if($account->isPaid() && $account->plan == 'enterprise')
|
||||||
{
|
{
|
||||||
|
|
||||||
$account->bank_integrations->each(function ($bank_integration) use ($account){
|
$account->bank_integrations()->where('auto_sync', true)->cursor()->each(function ($bank_integration) use ($account){
|
||||||
|
|
||||||
ProcessBankTransactions::dispatchSync($account->bank_integration_account_id, $bank_integration);
|
ProcessBankTransactions::dispatchSync($account->bank_integration_account_id, $bank_integration);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user