diff --git a/services/web/app/src/Features/Institutions/InstitutionsManager.js b/services/web/app/src/Features/Institutions/InstitutionsManager.js index b6d554dd78..6acf0787e3 100644 --- a/services/web/app/src/Features/Institutions/InstitutionsManager.js +++ b/services/web/app/src/Features/Institutions/InstitutionsManager.js @@ -265,6 +265,7 @@ const InstitutionsManager = { institution.countryCode = data?.country_code institution.departments = data?.departments institution.portalSlug = data?.portal_slug + institution.enterpriseCommons = data?.enterprise_commons } catch (error) { logger.err( { model: 'Institution', v1Id: institution.v1Id, error }, diff --git a/services/web/app/src/models/Institution.js b/services/web/app/src/models/Institution.js index 2fc2c34bfa..fd18cf33c2 100644 --- a/services/web/app/src/models/Institution.js +++ b/services/web/app/src/models/Institution.js @@ -28,6 +28,8 @@ InstitutionSchema.method('fetchV1Data', async function (callback) { this.countryCode = parsedBody != null ? parsedBody.country_code : undefined this.departments = parsedBody != null ? parsedBody.departments : undefined this.portalSlug = parsedBody != null ? parsedBody.portal_slug : undefined + this.enterpriseCommons = + parsedBody != null ? parsedBody.enterprise_commons : undefined } catch (error) { // log error and carry on without v1 data logger.err(