apps/meteor/app/lib/server/methods/saveSetting.ts
Function saveSetting
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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',