[migration] disable betaProgram in CE/SP (#9418)

GitOrigin-RevId: aee509973d1ffaaab8dcac31667154f36c815a2c
This commit is contained in:
Miguel Serrano 2022-09-01 09:16:48 +02:00 committed by Copybot
parent e93a4336bc
commit 01a1546639

View file

@ -0,0 +1,11 @@
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 () => {}