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/v252.ts

19 lines
461 B

import { Rooms } from '../../../app/models/server/raw';
import { IOmnichannelRoom, OmnichannelSourceType } from '../../../definition/IRoom';
import { addMigration } from '../../lib/migrations';
addMigration({
version: 252,
async up() {
await Rooms.updateMany(
{ $and: [{ t: 'l' }, { source: { $exists: false } }] },
{
$set: {
source: {
type: OmnichannelSourceType.OTHER,
} as IOmnichannelRoom['source'],
},
},
);
},
});