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();