From 3eb4d2c341b712268bd321173909e0a7b19a88c9 Mon Sep 17 00:00:00 2001 From: Justin Reynolds Date: Fri, 28 Jun 2019 12:52:09 -0500 Subject: Prettier & eslint project style update --- models/accountSettings.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'models/accountSettings.js') 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, }, - } + }, ); }); } -- cgit v1.2.3-1-g7c22