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 56aa8bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
12 changes: 4 additions & 8 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 { 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<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');
}
}
2 changes: 1 addition & 1 deletion packages/core-typings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"devDependencies": {
"@rocket.chat/eslint-config": "workspace:^",
"eslint": "~8.45.0",
"mongodb": "^4.12.1",
"mongodb": "^4.17.1",
"prettier": "~2.8.8",
"typescript": "~5.2.2"
},
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7972,7 +7972,7 @@ __metadata:
"@rocket.chat/message-parser": next
"@rocket.chat/ui-kit": ^0.32.1
eslint: ~8.45.0
mongodb: ^4.12.1
mongodb: ^4.17.1
prettier: ~2.8.8
typescript: ~5.2.2
languageName: unknown
Expand Down Expand Up @@ -28786,7 +28786,7 @@ __metadata:
languageName: node
linkType: hard

"mongodb@npm:4.17.1, mongodb@npm:^4.12.1, mongodb@npm:^4.3.1":
"mongodb@npm:4.17.1, mongodb@npm:^4.3.1":
version: 4.17.1
resolution: "mongodb@npm:4.17.1"
dependencies:
Expand Down

0 comments on commit 56aa8bf

Please sign in to comment.