Closed sebgro98 closed 1 month ago
The front-end cohort page needs to access the users'/teachers' specialism field. Thus, the backend which is generating the responses for the cohorts endpoints must include them, for example with the following code in domain/cohort.js:
include: { users: { select: { id: true, role: true, email: true, specialism: true, profile: true } } }
Approved
I accidentally closed this.
The front-end cohort page needs to access the users'/teachers' specialism field. Thus, the backend which is generating the responses for the cohorts endpoints must include them, for example with the following code in domain/cohort.js: