fix: Unsubscribe audit users from goal remindners on the course exit page (#671)

This reverts commit 20390d1e33.
This commit is contained in:
Matthew Piatetsky
2021-10-07 09:14:48 -04:00
committed by GitHub
parent 3fcc0d87c9
commit 5aa857f1de
6 changed files with 62 additions and 4 deletions

View File

@@ -8,6 +8,13 @@ Factory.define('courseMetadata')
.attrs({
content_type_gating_enabled: false,
course_expired_message: null,
course_goals: {
goal_options: [],
selected_goal: {
days_per_week: 1,
subscribed_to_reminders: true,
},
},
end: null,
enrollment_start: null,
enrollment_end: null,

View File

@@ -187,6 +187,7 @@ function normalizeMetadata(metadata) {
accessExpiration: camelCaseObject(data.access_expiration),
canShowUpgradeSock: data.can_show_upgrade_sock,
contentTypeGatingEnabled: data.content_type_gating_enabled,
courseGoals: data.course_goals,
id: data.id,
title: data.name,
number: data.number,