Skip to content

Commit 9112c14

Browse files
committed
email addresses for suotar to enrolments
1 parent fc619d8 commit 9112c14

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

importer-db-api/src/routes/suotar.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,12 @@ router.get('/course-unit-enrolments/:code/', async (req, res) => {
509509
courseUnitRealisationId: courseUnitRealisations.map(({ id }) => id),
510510
state: 'ENROLLED'
511511
},
512-
include: [{ model: models.Person, attributes: ['studentNumber', 'firstNames', 'lastName'] }],
512+
include: [
513+
{
514+
model: models.Person,
515+
attributes: ['studentNumber', 'firstNames', 'lastName', 'primaryEmail', 'secondaryEmail']
516+
}
517+
],
513518
raw: true,
514519
nest: true
515520
})

0 commit comments

Comments
 (0)