Skip to content

Commit

Permalink
fix: only fetch STUDENT ufbts in the getStudentsNumbersFromCourseIds
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Dec 2, 2024
1 parent 30032cd commit 05464c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/services/organisations/organisationSurveys.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,9 @@ const getStudentNumbersFromCourseIds = async courseIds => {
model: UserFeedbackTarget,
as: 'userFeedbackTargets',
required: true,
where: {
accessStatus: 'STUDENT',
},
include: [
{
model: FeedbackTarget,
Expand Down

0 comments on commit 05464c3

Please sign in to comment.