diff --git a/app/Events/Product/ProductWasArchived.php b/app/Events/Product/ProductWasArchived.php index 14a54db71aaa..38ab2990c0bf 100644 --- a/app/Events/Product/ProductWasArchived.php +++ b/app/Events/Product/ProductWasArchived.php @@ -11,6 +11,7 @@ namespace App\Events\Product; +use App\Models\Company; use App\Models\Product; use Illuminate\Queue\SerializesModels; diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index cc6290e86a4a..690f572ea15f 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -67,7 +67,8 @@ class Handler extends ExceptionHandler * @throws Throwable */ public function report(Throwable $exception) - {info("errrrrrrrrrrrrrrrrrr"); + { + if (! Schema::hasTable('accounts')) { info('account table not found'); return; @@ -90,8 +91,6 @@ class Handler extends ExceptionHandler } }); -// app('sentry')->setRelease(config('ninja.app_version')); - if($this->validException($exception)) app('sentry')->captureException($exception); } @@ -101,17 +100,15 @@ class Handler extends ExceptionHandler private function validException($exception) { - info("valid exception = " .$exception->getMessage()); - if(strpos($exception->getMessage(), 'file_put_contents') === TRUE) + if(strpos($exception->getMessage(), 'file_put_contents') !== FALSE) return FALSE; - if(strpos($exception->getMessage(), 'Permission denied') === TRUE) - return FALSE; - - if(strpos($exception->getMessage(), 'flock()') === TRUE) + if(strpos($exception->getMessage(), 'Permission denied') !== FALSE) return FALSE; + if(strpos($exception->getMessage(), 'flock()') !== FALSE) + return FALSE; return TRUE; } diff --git a/app/Jobs/Entity/CreateEntityPdf.php b/app/Jobs/Entity/CreateEntityPdf.php index b815f483eebd..9b92d5316f47 100644 --- a/app/Jobs/Entity/CreateEntityPdf.php +++ b/app/Jobs/Entity/CreateEntityPdf.php @@ -167,6 +167,6 @@ class CreateEntityPdf implements ShouldQueue public function failed(\Exception $exception) { - + info("help!"); } } diff --git a/composer.lock b/composer.lock index a710907da364..578bffb04798 100644 --- a/composer.lock +++ b/composer.lock @@ -116,16 +116,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.168.2", + "version": "3.168.3", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "1d6a976da857d13b156bd63613ee086c13f6dc29" + "reference": "49ef1f905388c8185012c9651b80941b8f2a218d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/1d6a976da857d13b156bd63613ee086c13f6dc29", - "reference": "1d6a976da857d13b156bd63613ee086c13f6dc29", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/49ef1f905388c8185012c9651b80941b8f2a218d", + "reference": "49ef1f905388c8185012c9651b80941b8f2a218d", "shasum": "" }, "require": { @@ -200,9 +200,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.168.2" + "source": "https://github.com/aws/aws-sdk-php/tree/3.168.3" }, - "time": "2020-12-10T19:35:18+00:00" + "time": "2020-12-11T19:12:18+00:00" }, { "name": "brick/math",