diff --git a/apps/meteor/server/models/Reports.ts b/apps/meteor/server/models/Reports.ts deleted file mode 100644 index ec328bc0b5d6..000000000000 --- a/apps/meteor/server/models/Reports.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { registerModel } from '@rocket.chat/models'; - -import { db } from '../database/utils'; -import { ReportsRaw } from './raw/Reports'; - -registerModel('IReportsModel', new ReportsRaw(db)); diff --git a/apps/meteor/server/models/raw/Reports.ts b/apps/meteor/server/models/raw/Reports.ts deleted file mode 100644 index 829c6d823964..000000000000 --- a/apps/meteor/server/models/raw/Reports.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { IMessage, IReport, RocketChatRecordDeleted } from '@rocket.chat/core-typings'; -import type { IReportsModel } from '@rocket.chat/model-typings'; -import type { Db, Collection } from 'mongodb'; - -import { BaseRaw } from './BaseRaw'; - -export class ReportsRaw extends BaseRaw implements IReportsModel { - constructor(db: Db, trash?: Collection>) { - super(db, 'reports', trash); - } - - createWithMessageDescriptionAndUserId(message: IMessage, description: string, userId: string): ReturnType['insertOne']> { - const record: Pick = { - message, - description, - ts: new Date(), - userId, - }; - return this.insertOne(record); - } -}