1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
paulwer 2023-12-25 08:16:36 +01:00
parent 5fa4bf44d5
commit 09adbf1cc2
2 changed files with 1 additions and 3 deletions

View File

@ -329,7 +329,7 @@ class BankIntegrationController extends BaseController
public function getTransactions(AdminBankIntegrationRequest $request)
{
/** @var \App\Models\Account $account */
$account = auth()->user()->account();
$account = auth()->user()->account;
if (Ninja::isHosted() && $account->isPaid() && $account->plan == 'enterprise') {
$account->bank_integrations()->where('integration_type', BankIntegration::INTEGRATION_TYPE_YODLEE)->where('auto_sync', true)->cursor()->each(function ($bank_integration) use ($account) {

View File

@ -80,8 +80,6 @@ class BankTransactionSync implements ShouldQueue
}
private function processNordigen()
{
if (config("ninja.nordigen.secret_id") && config("ninja.nordigen.secret_key")) { // @turbo124 check condition, when to execute this should be placed here (isSelfHosted || isPro/isEnterprise)
nlog("syncing transactions - nordigen");