- Fix regression in last refactor.
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -33,6 +33,12 @@ const fromEmails = InstanceManager({
|
||||
promanager: `ProManager <noreply@promanager.web-est.com>`
|
||||
});
|
||||
|
||||
const endPoints = InstanceManager({
|
||||
imex: process.env.NODE_ENV === "https://test.imex.online" ? "" : "https://imex.online",
|
||||
rome: "https://romeonline.io",
|
||||
promanager: "https://promanager.web-est.com"
|
||||
});
|
||||
|
||||
/**
|
||||
* Format the date for the email.
|
||||
* @param date
|
||||
@@ -54,7 +60,7 @@ const generateTemplateArgs = (title, createdBy, dueDate, taskId) => {
|
||||
return {
|
||||
header: title,
|
||||
subHeader: `Assigned by ${createdBy} ${formatDate(dueDate)}`,
|
||||
body: `<a href="${fromEmails}/manage/tasks/alltasks?taskid=${taskId}">Please sign in to your account to view the Task details.</a>`
|
||||
body: `<a href="${endPoints}/manage/tasks/alltasks?taskid=${taskId}">Please sign in to your account to view the Task details.</a>`
|
||||
};
|
||||
};
|
||||
|
||||
@@ -190,7 +196,7 @@ const tasksRemindEmail = async (req, res) => {
|
||||
${allTasks
|
||||
.map(
|
||||
(task) =>
|
||||
`<li><a href="${fromEmails}/manage/tasks/alltasks?taskid=${task.id}">${task.title} - ${formatDate(task.due_date)}</a></li>`
|
||||
`<li><a href="${endPoints}/manage/tasks/alltasks?taskid=${task.id}">${task.title} - ${formatDate(task.due_date)}</a></li>`
|
||||
)
|
||||
.join("")}
|
||||
</ul>`
|
||||
|
||||
Reference in New Issue
Block a user