- Add additional field to tasks table

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-04-09 11:18:43 -04:00
parent 33c282051b
commit 26cb527d37
5 changed files with 22 additions and 28 deletions

View File

@@ -84,6 +84,18 @@ exports.sendTaskEmail = async function ({ to, subject, text, attachments }) {
}
};
// This will be called by a Hasura event trigger
exports.taskAssignedEmail = async function (req, res) {
console.dir(req, { depth: null });
return res.status(200).json(req);
};
// This will be called by a Hasura event trigger
exports.tasksRemindEmail = async function (req, res) {
console.dir(req, { depth: null });
return res.status(200).json(req);
};
exports.sendEmail = async (req, res) => {
logger.log("send-email", "DEBUG", req.user.email, null, {
from: `${req.body.from.name} <${req.body.from.address}>`,