overleaf/services/web/migrations/20220826104236_disable_alpha_beta_program.js

12 lines
240 B
JavaScript
Raw Normal View History

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 () => {}