mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-21 00:02:43 +00:00
Merge pull request #22109 from overleaf/jdt-wf-auto-account-for-commons
[Web] Allow for Writefull to target non-enterprise commons GitOrigin-RevId: e348498d7f1eb7c75807897b08649ae63e9daa8a
This commit is contained in:
parent
d97555a380
commit
480ff65bef
2 changed files with 3 additions and 0 deletions
|
@ -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 },
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue