feat: allow payload to be passed to emailer test method

This commit is contained in:
Julian Lam
2021-03-02 12:30:37 -05:00
parent 00a68a9548
commit 1155b0c42f

View File

@@ -10,6 +10,7 @@ const Email = module.exports;
Email.test = async function (socket, data) {
const payload = {
...(data.payload || {}),
subject: '[[email:test-email.subject]]',
};