diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index 8c164d0580..cd1d800d10 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -3362,7 +3362,7 @@ class Appwrite extends Destination $existing = $templates[$key] ?? []; $existing['subject'] = $resource->getSubject(); - $existing['message'] = $resource->getMessage(); + $existing['message'] = $resource->getBody(); $existing['senderName'] = $resource->getSenderName(); $existing['senderEmail'] = $resource->getSenderEmail(); $existing['replyToEmail'] = $resource->getReplyToEmail(); diff --git a/src/Migration/Resources/Templates/EmailTemplate.php b/src/Migration/Resources/Templates/EmailTemplate.php index e5ec2e91fb..74fa1a8a38 100644 --- a/src/Migration/Resources/Templates/EmailTemplate.php +++ b/src/Migration/Resources/Templates/EmailTemplate.php @@ -17,7 +17,7 @@ class EmailTemplate extends Resource private readonly string $templateId, private readonly string $locale, private readonly string $subject, - private readonly string $message, + private readonly string $body, private readonly string $senderName = '', private readonly string $senderEmail = '', private readonly string $replyToEmail = '', @@ -60,7 +60,7 @@ class EmailTemplate extends Resource 'templateId' => $this->templateId, 'locale' => $this->locale, 'subject' => $this->subject, - 'message' => $this->message, + 'message' => $this->body, 'senderName' => $this->senderName, 'senderEmail' => $this->senderEmail, 'replyToEmail' => $this->replyToEmail, @@ -95,9 +95,9 @@ class EmailTemplate extends Resource return $this->subject; } - public function getMessage(): string + public function getBody(): string { - return $this->message; + return $this->body; } public function getSenderName(): string