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

18 lines
285 B
JavaScript
Raw Normal View History

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