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

13 lines
404 B

/* eslint-disable @typescript-eslint/explicit-function-return-type */
import { BaseRaw } from './BaseRaw';
import { IEmailMessageHistory } from '../../../../definition/IEmailMessageHistory';
export class EmailMessageHistoryRaw extends BaseRaw<IEmailMessageHistory> {
insertOne({ _id, email }: IEmailMessageHistory) {
return this.col.insertOne({
_id,
email,
createdAt: new Date(),
});
}
}