Update reminder interval and resolve server side.

This commit is contained in:
Patrick Fic
2024-04-19 10:53:25 -07:00
parent 2a8846297f
commit 13569a1785
3 changed files with 9 additions and 3 deletions

View File

@@ -202,7 +202,7 @@ const tasksRemindEmail = async (req, res) => {
// Group tasks by assigned_to, to avoid sending multiple emails to the same recipient.
const groupedTasks = tasksRequest.tasks.reduce((acc, task) => {
const key = task.assigned_to_email.user_email;
const key = task.assigned_to_employee.user_email;
if (!acc[key]) {
acc[key] = [];
}