⏳Deadline reached
if the developer has not rejected or accepted the task within the deadline he will the task will be unassigned
Input parameters
TaskID
How trigger
function should trigger automatic when task deadline is reached.
Logic
The backend should unassign a task after 48 hours if the Task is not accepted by deveoper.. (Probably not a http callable)
get developer document in DB (users/uid)
remove the ProjectId to the thirdPartyProjects array
Then remove the taskId to the assignedTasks array
the task could then be changed back to submitted or drafts, depending on isAssignedToPool boolean.
Send an Email to developer and Creator:
Send First Email:
to_email_adress = email_of_assigned_person
template_name = "tasks-accept-deadline-reached->developer"
data = {taskData: taskData, taskId: taskId}
Send Second Email:
to_email_adress = email_of_task_creator
template_name = "tasks-accept-deadline-reached->creator"
data = {taskData: taskData, taskId: taskId}
Last updated