Updated the assignment creation e-mail to send the URL for the assignment directly

This commit is contained in:
Tiago Ribeiro
2024-10-29 10:26:18 +00:00
parent ef857fee59
commit dd94f245eb
3 changed files with 6 additions and 4 deletions

View File

@@ -19,7 +19,7 @@
</p> </p>
<br /> <br />
<p>Don't forget to do it before its end date!</p> <p>Don't forget to do it before its end date!</p>
<p>Click <b><a href="https://{{environment}}.encoach.com">here</a></b> to open the EnCoach Platform!</p> <p>Click <b><a href="https://{{environment}}.encoach.com/exam?assignment={{assignment.id}}">here</a></b> to open the assignment on EnCoach!</p>
<br /> <br />
<p>Thanks,</p> <p>Thanks,</p>
<p>Your EnCoach team</p> <p>Your EnCoach team</p>

View File

@@ -8,6 +8,7 @@
"assignees": [], "assignees": [],
"modules": "Reading and Writing", "modules": "Reading and Writing",
"startDate": "24/12/2023", "startDate": "24/12/2023",
"endDate": "27/01/2024" "endDate": "27/01/2024",
"id": "123"
} }
} }

View File

@@ -164,6 +164,7 @@ async function POST(req: NextApiRequest, res: NextApiResponse) {
endDate, endDate,
modules: examModulesLabel, modules: examModulesLabel,
assigner: teacher.name, assigner: teacher.name,
id
}, },
environment: process.env.ENVIRONMENT, environment: process.env.ENVIRONMENT,
}, },