File tree Expand file tree Collapse file tree 5 files changed +12
-6
lines changed
app/statistics/server/lib
server/startup/migrations Expand file tree Collapse file tree 5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -92,9 +92,6 @@ async function getEEStatistics(): Promise<EEOnlyStats | undefined> {
9292 return true ;
9393 } ) ,
9494 ) ;
95-
96- // NOTE: keeping this for compatibility with current stats. Will be removed next major
97- statistics . omnichannelPdfTranscriptRequested = 0 ;
9895 // Number of PDF transcript that succeeded
9996 statsPms . push (
10097 LivechatRooms . countRoomsWithTranscriptSent ( ) . then ( ( count ) => {
Original file line number Diff line number Diff line change @@ -24,5 +24,6 @@ import './v315';
2424import './v316' ;
2525import './v317' ;
2626import './v318' ;
27+ import './v319' ;
2728
2829export * from './xrun' ;
Original file line number Diff line number Diff line change 1+ import { LivechatRooms } from '@rocket.chat/models' ;
2+
3+ import { addMigration } from '../../lib/migrations' ;
4+
5+ addMigration ( {
6+ version : 319 ,
7+ name : 'Remove "pdfTranscriptRequested" index from LivechatRooms collection' ,
8+ async up ( ) {
9+ await LivechatRooms . col . dropIndex ( 'pdfTranscriptRequested_1' ) ;
10+ } ,
11+ } ) ;
Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ export interface IStats {
175175 priorities ?: number ;
176176 slas ?: number ;
177177 businessUnits ?: number ;
178- omnichannelPdfTranscriptRequested ?: number ;
179178 omnichannelPdfTranscriptSucceeded ?: number ;
180179 omnichannelRoomsWithSlas ?: number ;
181180 omnichannelRoomsWithPriorities ?: number ;
Original file line number Diff line number Diff line change @@ -68,8 +68,6 @@ export class LivechatRoomsRaw extends BaseRaw<IOmnichannelRoom> implements ILive
6868 } ,
6969 } ,
7070 { key : { 'livechatData.$**' : 1 } } ,
71- // TODO: Remove index on next major
72- // { key: { pdfTranscriptRequested: 1 }, sparse: true },
7371 { key : { pdfTranscriptFileId : 1 } , sparse : true } , // used on statistics
7472 { key : { callStatus : 1 } , sparse : true } , // used on statistics
7573 { key : { priorityId : 1 } , sparse : true } ,
You can’t perform that action at this time.
0 commit comments