Transactional mail: code review fixes
This commit is contained in:
parent
ed4a13fef7
commit
80279346f3
5 changed files with 14 additions and 7 deletions
|
@ -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 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue