summaryrefslogtreecommitdiffstats
path: root/models/accountSettings.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-06-29 07:47:57 -0400
committerLauri Ojansivu <x@xet7.org>2019-06-29 07:47:57 -0400
commitb84dc20ded0375d9ab14ec05c78b737398d76b83 (patch)
treec3b91b3657299c779e941a1257df17bb0eade866 /models/accountSettings.js
parent100288b3e1bce882ab9923a5bff7b5f620f33ee8 (diff)
parent3eb4d2c341b712268bd321173909e0a7b19a88c9 (diff)
downloadwekan-b84dc20ded0375d9ab14ec05c78b737398d76b83.tar.gz
wekan-b84dc20ded0375d9ab14ec05c78b737398d76b83.tar.bz2
wekan-b84dc20ded0375d9ab14ec05c78b737398d76b83.zip
Merge branch 'linting' of https://github.com/justinr1234/wekan into justinr1234-linting
Diffstat (limited to 'models/accountSettings.js')
-rw-r--r--models/accountSettings.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/models/accountSettings.js b/models/accountSettings.js
index c4240f84..c68e905c 100644
--- a/models/accountSettings.js
+++ b/models/accountSettings.js
@@ -37,7 +37,7 @@ AccountSettings.attachSchema(
}
},
},
- })
+ }),
);
AccountSettings.allow({
@@ -47,11 +47,6 @@ AccountSettings.allow({
},
});
-AccountSettings.before.update((userId, doc, fieldNames, modifier, options) => {
- modifier.$set = modifier.$set || {};
- modifier.$set.modifiedAt = Date.now();
-});
-
if (Meteor.isServer) {
Meteor.startup(() => {
AccountSettings._collection._ensureIndex({ modifiedAt: -1 });
@@ -62,7 +57,7 @@ if (Meteor.isServer) {
booleanValue: false,
sort: 0,
},
- }
+ },
);
AccountSettings.upsert(
{ _id: 'accounts-allowUserNameChange' },
@@ -71,7 +66,7 @@ if (Meteor.isServer) {
booleanValue: false,
sort: 1,
},
- }
+ },
);
});
}