From 7432f59a81904d979aadefbb6855958159a1fcce Mon Sep 17 00:00:00 2001 From: Valtteri Kantanen Date: Mon, 4 Nov 2024 13:48:22 +0200 Subject: [PATCH] [Updater] Fix `is_study_module` column in `course` table --- updater/sis-updater-worker/src/updater/mapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updater/sis-updater-worker/src/updater/mapper.js b/updater/sis-updater-worker/src/updater/mapper.js index 44e9988198..b36dad25df 100644 --- a/updater/sis-updater-worker/src/updater/mapper.js +++ b/updater/sis-updater-worker/src/updater/mapper.js @@ -275,7 +275,7 @@ const courseMapper = courseIdToAttainments => (groupedCourse, substitutions) => coursetypecode, min_attainment_date, max_attainment_date, - is_study_module: false, // VALIDATE THIS PLS + is_study_module: course_unit_type == null, // Only course units have a course_unit_type so if it's null, it must be a study module substitutions, course_unit_type, }