fix: sent undefined arguments instead of empty string

This commit is contained in:
Arman committed 2023-08-28 15:59:49 +02:00
1 parent e430c24be6
commit 7e31c3e34c
1 file changed
+6 -6
@@ -46,12 +46,12 @@
}
await sdk.forConsole.projects.updateEmailTemplate(
$project.$id,
$emailTemplate.type,
$emailTemplate.locale,
$emailTemplate.subject,
$emailTemplate.message,
$emailTemplate.senderName,
$emailTemplate.senderEmail,
$emailTemplate.type ?? undefined,
$emailTemplate.locale ?? undefined,
$emailTemplate.subject ?? undefined,
$emailTemplate.message ?? undefined,
$emailTemplate.senderName ?? undefined,
$emailTemplate.senderEmail ?? undefined,
$emailTemplate.replyTo ? $emailTemplate.replyTo : undefined
);