summaryrefslogtreecommitdiffstats
path: root/models/announcements.js
diff options
context:
space:
mode:
authorJustin Reynolds <justinr1234@gmail.com>2019-06-28 12:52:09 -0500
committerJustin Reynolds <justinr1234@gmail.com>2019-06-28 12:56:51 -0500
commit3eb4d2c341b712268bd321173909e0a7b19a88c9 (patch)
tree25a8fcb088f3984e72a5bd3ded9e6a45376e0693 /models/announcements.js
parenta0a482aa8efb3255a523de4524c8e09453d5571f (diff)
downloadwekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.tar.gz
wekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.tar.bz2
wekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.zip
Prettier & eslint project style update
Diffstat (limited to 'models/announcements.js')
-rw-r--r--models/announcements.js7
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 });