Skip to content

Commit

Permalink
Fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Veikkosuhonen committed Mar 4, 2024
1 parent e2b7b47 commit 72b918c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/updater/updateStudentFeedbackTargets.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ const createEnrolmentFallback = async (ufbt) => {
}

const enrolmentsHandler = async (enrolments) => {
// This filter is not *needed*, the same filtering is done in importer
const acceptedEnrolments = enrolments.filter((enrolment) => enrolment.status === "ENROLLED" && enrolment.documentState === "ACTIVE")
const userFeedbackTargets = await createEnrolmentTargets(acceptedEnrolments)
const userFeedbackTargets = await createEnrolmentTargets(enrolments)

const newUfbts = await safeBulkCreate({
entityName: 'UserFeedbackTarget',
Expand Down

0 comments on commit 72b918c

Please sign in to comment.