diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-06-29 08:38:52 -0400 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-06-29 08:38:52 -0400 |
commit | 40b782788afdf2d1cf5ecd9cf157526946f322c4 (patch) | |
tree | b0aa59515089e84d86449dc246a4c0efed0253e9 /models/announcements.js | |
parent | 100288b3e1bce882ab9923a5bff7b5f620f33ee8 (diff) | |
parent | 45163e2d2db3eb7c8b3edbdc133a9ea7e0594c5a (diff) | |
download | wekan-40b782788afdf2d1cf5ecd9cf157526946f322c4.tar.gz wekan-40b782788afdf2d1cf5ecd9cf157526946f322c4.tar.bz2 wekan-40b782788afdf2d1cf5ecd9cf157526946f322c4.zip |
Merge branch 'justinr1234-linting' into meteor-1.8
Diffstat (limited to 'models/announcements.js')
-rw-r--r-- | models/announcements.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/models/announcements.js b/models/announcements.js index f3a62244..c08710b8 100644 --- a/models/announcements.js +++ b/models/announcements.js @@ -42,7 +42,7 @@ Announcements.attachSchema( } }, }, - }) + }), ); Announcements.allow({ @@ -52,11 +52,6 @@ Announcements.allow({ }, }); -Announcements.before.update((userId, doc, fieldNames, modifier, options) => { - modifier.$set = modifier.$set || {}; - modifier.$set.modifiedAt = Date.now(); -}); - if (Meteor.isServer) { Meteor.startup(() => { Announcements._collection._ensureIndex({ modifiedAt: -1 }); |