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/apps/meteor/server/startup/migrations/v319.ts

15 lines
370 B

import { LivechatRooms } from '@rocket.chat/models';
import { addMigration } from '../../lib/migrations';
addMigration({
version: 319,
name: 'Remove "pdfTranscriptRequested" index from LivechatRooms collection',
async up() {
try {
await LivechatRooms.col.dropIndex('pdfTranscriptRequested_1');
} catch {
console.error('Error dropping index');
}
},
});