Merge pull request #21884 from overleaf/msm-remove-group-sso-enabled-flag

[web] Cleanup `GROUP_SSO_ENABLED` env variable

GitOrigin-RevId: b41ce989348c70c3b4ca59ebf4986edf059534aa
This commit is contained in:
Miguel Serrano
2024-11-21 09:03:43 +00:00
committed by Copybot
parent 7743c861a4
commit 2d122323eb
7 changed files with 91 additions and 210 deletions
@@ -0,0 +1,21 @@
const tags = ['saas']
const migrate = async client => {
const { db } = client
await db.subscriptions.updateMany(
{ 'features.managedUsers': { $eq: null } },
{ $set: { 'features.managedUsers': true } }
)
await db.subscriptions.updateMany(
{ 'features.groupSSO': { $eq: null } },
{ $set: { 'features.groupSSO': true } }
)
}
const rollback = async () => {}
export default {
tags,
migrate,
rollback,
}