From c2c72b77e303d594c97c6a9b1c58dfec8b61d931 Mon Sep 17 00:00:00 2001 From: Baspa Date: Fri, 3 Jan 2025 14:17:15 +0100 Subject: [PATCH] [Fix] Use correct storage path attribute --- src/Controllers/MailDownloadController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controllers/MailDownloadController.php b/src/Controllers/MailDownloadController.php index 7bc96cc..52cf222 100644 --- a/src/Controllers/MailDownloadController.php +++ b/src/Controllers/MailDownloadController.php @@ -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, @@ -23,4 +23,4 @@ public function __invoke(string $tenant, string $mail, string $attachment, strin ] ); } -} +} \ No newline at end of file