The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/server/models/raw/CronHistoryModel.ts

15 lines
492 B

import type { ICronHistoryItem } from '@rocket.chat/core-typings';
import type { ICronHistoryModel } from '@rocket.chat/model-typings';
import type { Db, IndexDescription } from 'mongodb';
import { BaseRaw } from './BaseRaw';
export class CronHistoryRaw extends BaseRaw<ICronHistoryItem> implements ICronHistoryModel {
constructor(db: Db) {
super(db, 'cron_history');
}
protected modelIndexes(): IndexDescription[] {
return [{ key: { intendedAt: 1, name: 1 }, unique: true }];
}
}