From b85e846de5e5be27c003ec3a5264e651bc0da9e8 Mon Sep 17 00:00:00 2001 From: paulwer Date: Sun, 30 Jun 2024 13:07:09 +0200 Subject: [PATCH] fixes --- app/Services/EDocument/Imports/ParseEDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/EDocument/Imports/ParseEDocument.php b/app/Services/EDocument/Imports/ParseEDocument.php index 39d0b4cd99cd..0c4f91d36779 100644 --- a/app/Services/EDocument/Imports/ParseEDocument.php +++ b/app/Services/EDocument/Imports/ParseEDocument.php @@ -58,7 +58,7 @@ class ParseEDocument extends AbstractService } // MINDEE OCR - try to parse via mindee external service - if (config('services.mindee.api_key') && !(Ninja::isHosted() && !($this->company->account->isPaid() && $this->company->account->plan == 'enterprise'))) + if (config('services.mindee.api_key') && !(Ninja::isHosted() && !($account->isPaid() && $account->plan == 'enterprise'))) try { return (new MindeeEDocument($this->file))->run(); } catch (Exception $e) {