diff --git a/src/server/services/organisations/organisationSurveys.js b/src/server/services/organisations/organisationSurveys.js index a15dae68..f9c3dd1d 100644 --- a/src/server/services/organisations/organisationSurveys.js +++ b/src/server/services/organisations/organisationSurveys.js @@ -460,6 +460,9 @@ const getStudentNumbersFromCourseIds = async courseIds => { model: UserFeedbackTarget, as: 'userFeedbackTargets', required: true, + where: { + accessStatus: 'STUDENT', + }, include: [ { model: FeedbackTarget,