Transactional mail: code review fixes

This commit is contained in:
Alexey Zinkevych 2019-03-31 15:50:40 +03:00
parent ed4a13fef7
commit 80279346f3
5 changed files with 14 additions and 7 deletions

View file

@ -302,9 +302,11 @@ router.postAsync('/templates/:templateId/send', async (req, res) => {
templateId: req.params.templateId
});
const info = await templateSender.send({
context: req.context,
email: input.EMAIL,
subject: input.SUBJECT,
locale: req.locale,
sendConfigurationId: input.SEND_CONFIGURATION_ID,
subject: input.SUBJECT,
variables: input.VARIABLES
});
res.status(200).json({ data: info });