The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/server/startup/migrations/v212.js

24 lines
430 B

import { MongoInternals } from 'meteor/mongo';
import { addMigration } from '../../lib/migrations';
addMigration({
version: 212,
up() {
const { mongo } = MongoInternals.defaultRemoteCollectionDriver();
const apps = mongo.db.collection('rocketchat_apps');
Promise.await(
apps.updateMany(
{
status: 'initialized',
},
{
$set: {
status: 'manually_disabled',
},
},
),
);
},
});