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/app/models/server/models/ServerEvents.ts

11 lines
264 B

import { Base } from './_Base';
export class ServerEvents extends Base {
constructor() {
super('server_events');
this.tryEnsureIndex({ t: 1, ip: 1, ts: -1 });
this.tryEnsureIndex({ t: 1, 'u.username': 1, ts: -1 });
}
}
export default new ServerEvents();