Transactional mail: minor template-sender refactoring
This commit is contained in:
parent
e588e218b6
commit
8b39a101cd
3 changed files with 24 additions and 16 deletions
|
@ -299,13 +299,13 @@ router.postAsync('/templates/:templateId/send', async (req, res) => {
|
|||
|
||||
try {
|
||||
const templateSender = new TemplateSender({
|
||||
context: req.context,
|
||||
locale: req.locale,
|
||||
templateId: req.params.templateId
|
||||
});
|
||||
const info = await templateSender.send({
|
||||
context: req.context,
|
||||
data: input.DATA,
|
||||
email: input.EMAIL,
|
||||
locale: req.locale,
|
||||
sendConfigurationId: input.SEND_CONFIGURATION_ID,
|
||||
subject: input.SUBJECT,
|
||||
variables: input.VARIABLES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue