Skip to content

Commit

Permalink
Merge branch 'main' into N21-939-assign-groups-to-course
Browse files Browse the repository at this point in the history
  • Loading branch information
MBergCap committed Oct 12, 2023
2 parents 3e200cb + c727d25 commit 9224c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/courses.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const createEventsForCourse = (req, res, course) => {
// can just run if a calendar service is running on the environment
if (Configuration.get('CALENDAR_SERVICE_ENABLED') === true) {
return Promise.all(
course.times.map((time) => {
course.times?.map((time) => {
const startDate = timesHelper.fromUTC(course.startDate).add(time.startTime, 'ms');
const repeatUntil = timesHelper.fromUTC(course.untilDate);
const event = {
Expand Down

0 comments on commit 9224c0a

Please sign in to comment.