feat(classes): store weekdays and meeting times on the class
Keep the class schedule on the class itself so SMS and listings do not have to infer days and hours from sessions.
This commit is contained in:
@@ -37,7 +37,7 @@ const runClassReminderJob = async () => {
|
||||
reminderSentAt: null,
|
||||
day: { $gte: dayFrom, $lte: dayTo },
|
||||
})
|
||||
.populate({ path: 'class', select: 'name students startDate' })
|
||||
.populate({ path: 'class', select: 'name students startDate days startTime endTime' })
|
||||
.populate({ path: 'course', select: 'title' })
|
||||
.lean();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user