Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Sep 29, 2023
1 parent 100738b commit 4e414bd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions apps/meteor/server/models/raw/CloudAnnouncements.ts
Original file line number Diff line number Diff line change
@@ -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<Cloud.Announcement> implements ICloudAnnouncementsModel {
constructor(db: Db, trash?: Collection<RocketChatRecordDeleted<Cloud.Announcement>>) {
super(db, 'cloud_announcements', trash);
}

modelIndexes(): IndexDescription[] {
return [{ key: { status: 1, expireAt: 1 } }];
constructor(db: Db) {
super(db, 'cloud_announcements');
}
}

0 comments on commit 4e414bd

Please sign in to comment.