This commit is contained in:
Martin Folkerts 2024-02-01 17:08:32 +01:00
parent 8905c18df3
commit c01af00645

View file

@ -56,7 +56,7 @@ public function content(): Content
public function attachments(): array
{
return $this->mailing->attachments()->get()->map(function (ProjectMailingAttachment $attachment) {
$projectPath = $attachment->mailing()->project()->first()->path;
$projectPath = $attachment->mailing->project->path;
return Attachment::fromStorage(
path: $projectPath.$attachment->path