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/app/models/server/raw/Settings.js

9 lines
219 B

import { BaseRaw } from './BaseRaw';
export class SettingsRaw extends BaseRaw {
async getValueById(_id) {
const setting = await this.col.findOne({ _id }, { projection: { value: 1 } });
return setting.value;
}
}