kaori 4 лет назад
Родитель
Сommit
2a0d7b7c30
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      packages/app/src/server/models/user.js

+ 2 - 3
packages/app/src/server/models/user.js

@@ -70,7 +70,6 @@ module.exports = function(crowi) {
     lastLoginAt: { type: Date },
     admin: { type: Boolean, default: 0, index: true },
     isInvitationEmailSended: { type: Boolean, default: false },
-    // isTextLintEnable: { type: Boolean, default: true },
     editorSettings: editorSchema,
   }, {
     toObject: {
@@ -699,8 +698,8 @@ module.exports = function(crowi) {
     user.save();
   };
 
-  userSchema.methods.updateIsTextLintEnable = async function(isTextLintEnable) {
-    this.isGravatarEnabled = isTextLintEnable;
+  userSchema.methods.updateEditorSettings = async function(editorSettings) {
+    this.editorSettings = editorSettings;
     const userData = await this.save();
     return userData;
   };