From 4e414bd306154b24b88b7be745050ed2d6b44383 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Fri, 29 Sep 2023 17:12:37 -0300 Subject: [PATCH] review --- apps/meteor/server/models/raw/CloudAnnouncements.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/meteor/server/models/raw/CloudAnnouncements.ts b/apps/meteor/server/models/raw/CloudAnnouncements.ts index d48082b0c33c8..eeaa0e90a17b1 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 { 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'); } }