overleaf/services/web/migrations/20220826104236_disable_alpha_beta_program.js
Miguel Serrano 01a1546639 [migration] disable betaProgram in CE/SP (#9418)
GitOrigin-RevId: aee509973d1ffaaab8dcac31667154f36c815a2c
2022-09-01 08:03:41 +00:00

11 lines
240 B
JavaScript

exports.tags = ['server-ce', 'server-pro']
exports.migrate = async client => {
const { db } = client
await db.users.updateMany(
{},
{ $set: { alphaProgram: false, betaProgram: false } }
)
}
exports.rollback = async () => {}