diff --git a/app/Jobs/Entity/CreateEntityPdf.php b/app/Jobs/Entity/CreateEntityPdf.php index 4a5be2b5887a..256c618ae9f7 100644 --- a/app/Jobs/Entity/CreateEntityPdf.php +++ b/app/Jobs/Entity/CreateEntityPdf.php @@ -70,7 +70,7 @@ class CreateEntityPdf implements ShouldQueue * * @param $invitation */ - public function __construct($invitation, $disk = 'public') + public function __construct($invitation, $disk = null) { $this->invitation = $invitation; @@ -99,7 +99,7 @@ class CreateEntityPdf implements ShouldQueue $this->client = $invitation->contact->client; $this->client->load('company'); - $this->disk = Ninja::isHosted() ? config('filesystems.default') : $disk; + $this->disk = $disk ?? config('filesystems.default'); } diff --git a/app/Services/Invoice/GenerateDeliveryNote.php b/app/Services/Invoice/GenerateDeliveryNote.php index 1546a05b62bf..39851845ff77 100644 --- a/app/Services/Invoice/GenerateDeliveryNote.php +++ b/app/Services/Invoice/GenerateDeliveryNote.php @@ -49,8 +49,6 @@ class GenerateDeliveryNote $this->contact = $contact; - // $this->disk = 'public'; - $this->disk = $disk ?? config('filesystems.default'); }