mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
🐛 Set proper order of email parts.
This commit is contained in:
parent
1db1bd03f5
commit
0221cc06f8
1 changed files with 9 additions and 4 deletions
|
@ -209,11 +209,16 @@
|
|||
subj (render-email-template-part :subj id context)
|
||||
text (render-email-template-part :txt id context)
|
||||
html (render-email-template-part :html id context)]
|
||||
(when (or (not subj)
|
||||
(not text)
|
||||
(not html))
|
||||
(ex/raise :type :internal
|
||||
:code :missing-email-templates))
|
||||
{:subject subj
|
||||
:body [{:type "text/html"
|
||||
:content html}
|
||||
{:type "text/plain"
|
||||
:content text}]}))
|
||||
:body [{:type "text/plain"
|
||||
:content text}
|
||||
{:type "text/html"
|
||||
:content html}]}))
|
||||
|
||||
(s/def ::priority #{:high :low})
|
||||
(s/def ::to (s/or :sigle ::us/email
|
||||
|
|
Loading…
Add table
Reference in a new issue