apps/meteor/server/lib/statistics/getSettingsStatistics.ts
Function setSettingsStatistics
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const setSettingsStatistics = async (settings: ISettingStatistics): Promise<ISettingStatisticsObject> => {
const {
account2fa,
cannedResponsesEnabled,
e2e,
Function getSettingsStatistics
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getSettingsStatistics = async (): Promise<ISettingStatisticsObject> => {
try {
const settingsBase = [
{ key: 'Accounts_TwoFactorAuthentication_Enabled', alias: 'account2fa' },
{ key: 'E2E_Enable', alias: 'e2e' },