This commit is contained in:
paulwer 2024-06-30 13:07:09 +02:00
parent dbcf32da26
commit b85e846de5

View File

@ -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) {