update signature of attachment path
This commit is contained in:
parent
58d5ce47a1
commit
1dcaa543bc
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue