1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

MInor fixes for correct disk configuration

This commit is contained in:
David Bomba 2022-06-13 09:33:40 +10:00
parent 4e4a7a4be1
commit 8164d40007
2 changed files with 2 additions and 4 deletions

View File

@ -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');
}

View File

@ -49,8 +49,6 @@ class GenerateDeliveryNote
$this->contact = $contact;
// $this->disk = 'public';
$this->disk = $disk ?? config('filesystems.default');
}