From 7a0733d0f7fb94025c9612386e50207aeb1ff91a Mon Sep 17 00:00:00 2001 From: Veikkosuhonen Date: Wed, 22 Nov 2023 19:54:57 +0200 Subject: [PATCH] feat: Group id for cu on create --- .../updateCoursesAndTeacherFeedbackTargets.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/updater/updateCoursesAndTeacherFeedbackTargets/updateCoursesAndTeacherFeedbackTargets.js b/src/updater/updateCoursesAndTeacherFeedbackTargets/updateCoursesAndTeacherFeedbackTargets.js index 940df08..7d62a64 100644 --- a/src/updater/updateCoursesAndTeacherFeedbackTargets/updateCoursesAndTeacherFeedbackTargets.js +++ b/src/updater/updateCoursesAndTeacherFeedbackTargets/updateCoursesAndTeacherFeedbackTargets.js @@ -95,8 +95,9 @@ const createCourseUnits = async (courseUnits) => { ids.add(cu.id) return true }) - .map(({ id, name, code, validityPeriod }) => ({ + .map(({ id, groupId, name, code, validityPeriod }) => ({ id, + groupId, name, courseCode: code, validityPeriod,