Save new templates image data to the new columns

[MAILPOET-2686]
This commit is contained in:
Rostislav Wolny
2021-10-15 12:47:47 +02:00
committed by Veljko V
parent f5e4bab40b
commit b51f7b2d0e
3 changed files with 10 additions and 2 deletions

View File

@@ -52,6 +52,10 @@ class NewsletterTemplatesRepository extends Repository {
$template->setThumbnail($data['thumbnail']);
}
if (isset($data['thumbnail_data'])) {
$template->setThumbnailData($data['thumbnail_data']);
}
if (isset($data['body'])) {
$template->setBody(json_decode($data['body'], true));
}