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/settings/server/functions/settings.ts

13 lines
485 B

import SettingsModel from '../../../models/server/models/Settings';
import { CachedSettings } from '../CachedSettings';
import { SettingsRegistry } from '../SettingsRegistry';
import { ISetting } from '../../../../definition/ISetting';
export const settings = new CachedSettings();
SettingsModel.find().forEach((record: ISetting) => {
settings.set(record);
});
settings.initilized();
export const settingsRegistry = new SettingsRegistry({ store: settings, model: SettingsModel });