Browse Source

Merge pull request #27516 from overleaf/slg-hide-enrolment_ad_html

hide enrolment_ad_html field from v1 admin form and remove unused usage in web

GitOrigin-RevId: 7cf8eed1a68bbaf2ebbb77069bfd421cd26ef01d
Simon Gardner 1 năm trước cách đây
mục cha
commit
7b7d03bcc0

+ 0 - 1
services/web/app/src/Features/Notifications/NotificationsBuilder.js

@@ -168,7 +168,6 @@ function ipMatcherAffiliation(userId) {
           const messageOpts = {
             university_name: body.name,
             institutionId: body.id,
-            content: body.enrolment_ad_html,
             portalPath,
             ssoEnabled: body.sso_enabled,
           }

+ 0 - 4
services/web/test/unit/src/Notifications/NotificationsBuilderTests.js

@@ -97,7 +97,6 @@ describe('NotificationsBuilder', function () {
         this.body = {
           id: 1,
           name: 'stanford',
-          enrolment_ad_html: 'v1 ad content',
           is_university: true,
           portal_slug: null,
           sso_enabled: false,
@@ -112,7 +111,6 @@ describe('NotificationsBuilder', function () {
         const expectedOpts = {
           institutionId: this.body.id,
           university_name: this.body.name,
-          content: this.body.enrolment_ad_html,
           ssoEnabled: false,
           portalPath: undefined,
         }
@@ -131,7 +129,6 @@ describe('NotificationsBuilder', function () {
         this.body = {
           id: 1,
           name: 'stanford',
-          enrolment_ad_html: 'v1 ad content',
           is_university: true,
           portal_slug: 'stanford',
           sso_enabled: true,
@@ -146,7 +143,6 @@ describe('NotificationsBuilder', function () {
         const expectedOpts = {
           institutionId: this.body.id,
           university_name: this.body.name,
-          content: this.body.enrolment_ad_html,
           ssoEnabled: true,
           portalPath: '/edu/stanford',
         }