From 8cf50fdea3839fc3a73224963e535603090da133 Mon Sep 17 00:00:00 2001 From: Steliyan Dinkov Date: Thu, 7 Nov 2024 23:31:51 +0100 Subject: [PATCH] update course patch --- controllers/courses.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controllers/courses.js b/controllers/courses.js index d909d5633f..6ab16c6d23 100644 --- a/controllers/courses.js +++ b/controllers/courses.js @@ -82,7 +82,6 @@ const getSyncedElements = ( syncedWithGroup, excludeFromSync: course.excludeFromSync?.join(','), }; - return selectedElements; }; @@ -854,7 +853,7 @@ router.patch('/:courseId', async (req, res, next) => { req.body.substitutionIds = []; } - const keys = ['teacherIds', 'substitutionIds', 'classIds', 'userIds']; + const keys = ['teacherIds', 'substitutionIds', 'classIds', 'userIds', 'excludeFromSync']; req.body = strToPropsArray(req.body, keys); const startDate = timesHelper.dateTimeStringToMoment(req.body.startDate).utc();