Skip to content

Commit

Permalink
[Fix] Use correct storage path attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Jan 3, 2025
1 parent aeb6891 commit c2c72b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/MailDownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __invoke(string $tenant, string $mail, string $attachment, strin
/** @var MailAttachment $attachment */
$attachment = MailAttachment::find($attachment);

$file = Storage::disk($attachment->disk)->path($attachment->uuid);
$file = Storage::disk($attachment->disk)->path($attachment->storagePath);

return response()->download(
file: $file,
Expand All @@ -23,4 +23,4 @@ public function __invoke(string $tenant, string $mail, string $attachment, strin
]
);
}
}
}

0 comments on commit c2c72b7

Please sign in to comment.