Add check that re-engagement link is not missing

[MAILPOET-3764]
This commit is contained in:
Jan Lysý
2021-11-17 10:08:50 +01:00
committed by Veljko V
parent 5b253e5d30
commit aec3bcd4ef
2 changed files with 18 additions and 1 deletions

View File

@@ -500,4 +500,9 @@ class NewsletterEntity {
return $processedAt;
}
public function getContent(): string {
$content = $this->getBody()['content'] ?? '';
return json_encode($content) ?: '';
}
}