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/raw/ReadReceipts.ts

12 lines
454 B

import { Cursor } from 'mongodb';
import { BaseRaw, IndexSpecification } from './BaseRaw';
import { ReadReceipt } from '../../../../definition/ReadReceipt';
export class ReadReceiptsRaw extends BaseRaw<ReadReceipt> {
protected indexes: IndexSpecification[] = [{ key: { roomId: 1, userId: 1, messageId: 1 }, unique: true }, { key: { messageId: 1 } }];
findByMessageId(messageId: string): Cursor<ReadReceipt> {
return this.find({ messageId });
}
}