RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/lib/server/methods/saveSetting.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function saveSetting has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    saveSetting: twoFactorRequired(async (_id, value, editor) => {
        const uid = Meteor.userId();
        if (!uid) {
            throw new Meteor.Error('error-action-not-allowed', 'Editing settings is not allowed', {
                method: 'saveSetting',
Severity: Minor
Found in apps/meteor/app/lib/server/methods/saveSetting.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status