diff options
author | Justin Reynolds <justinr1234@gmail.com> | 2019-06-28 12:52:09 -0500 |
---|---|---|
committer | Justin Reynolds <justinr1234@gmail.com> | 2019-06-28 12:56:51 -0500 |
commit | 3eb4d2c341b712268bd321173909e0a7b19a88c9 (patch) | |
tree | 25a8fcb088f3984e72a5bd3ded9e6a45376e0693 /models/rules.js | |
parent | a0a482aa8efb3255a523de4524c8e09453d5571f (diff) | |
download | wekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.tar.gz wekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.tar.bz2 wekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.zip |
Prettier & eslint project style update
Diffstat (limited to 'models/rules.js')
-rw-r--r-- | models/rules.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/models/rules.js b/models/rules.js index 76170b33..202071fc 100644 --- a/models/rules.js +++ b/models/rules.js @@ -44,7 +44,7 @@ Rules.attachSchema( } }, }, - }) + }), ); Rules.mutations({ @@ -74,11 +74,6 @@ Rules.allow({ }, }); -Rules.before.update((userId, doc, fieldNames, modifier, options) => { - modifier.$set = modifier.$set || {}; - modifier.$set.modifiedAt = Date.now(); -}); - if (Meteor.isServer) { Meteor.startup(() => { Rules._collection._ensureIndex({ modifiedAt: -1 }); |