update signature of attachment path

This commit is contained in:
Martin Folkerts 2024-07-09 16:18:51 +02:00
parent 58d5ce47a1
commit 1dcaa543bc

View file

@ -65,7 +65,7 @@ public function content(): Content
public function attachments(): array
{
return $this->mailing->attachments()->get()->map(function (ProjectMailingAttachment $attachment) {
$attachment_path = $attachment->mailing->project->download_path."/".$attachment->path;
$attachment_path = Storage::path($attachment->mailing->project->download_path."/".$attachment->path);
if (!File::exists($attachment_path)) {
logger('Could not find attachment: ' . $attachment_path);