RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/lib/settings/PublicSettingsCachedCollection.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { ISetting } from '@rocket.chat/core-typings';

import { CachedCollection } from '../../../app/ui-cached-collection/client';

class PublicSettingsCachedCollection extends CachedCollection<ISetting> {
    constructor() {
        super({
            name: 'public-settings',
            eventType: 'notify-all',
            userRelated: false,
        });
    }
}

const instance = new PublicSettingsCachedCollection();

export {
    /** @deprecated */
    instance as PublicSettingsCachedCollection,
};