Skip to content

Commit

Permalink
update course patch
Browse files Browse the repository at this point in the history
  • Loading branch information
sdinkov committed Nov 7, 2024
1 parent 154d0cc commit 8cf50fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/courses.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ const getSyncedElements = (
syncedWithGroup,
excludeFromSync: course.excludeFromSync?.join(','),
};

return selectedElements;
};

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 8cf50fd

Please sign in to comment.