diff --git a/apps/meteor/server/models/raw/CloudAnnouncements.ts b/apps/meteor/server/models/raw/CloudAnnouncements.ts index d48082b0c33c8..21b4304b2bd5e 100644 --- a/apps/meteor/server/models/raw/CloudAnnouncements.ts +++ b/apps/meteor/server/models/raw/CloudAnnouncements.ts @@ -1,15 +1,11 @@ -import type { Cloud, RocketChatRecordDeleted } from '@rocket.chat/core-typings'; +import type { Cloud } from '@rocket.chat/core-typings'; import type { ICloudAnnouncementsModel } from '@rocket.chat/model-typings'; -import type { Collection, Db, IndexDescription } from 'mongodb'; +import type { Db } from 'mongodb'; import { BaseRaw } from './BaseRaw'; export class CloudAnnouncementsRaw extends BaseRaw implements ICloudAnnouncementsModel { - constructor(db: Db, trash?: Collection>) { - super(db, 'cloud_announcements', trash); - } - - modelIndexes(): IndexDescription[] { - return [{ key: { status: 1, expireAt: 1 } }]; + constructor(db: Db) { + super(db, 'cloud_announcements'); } }