summaryrefslogtreecommitdiffstats
path: root/models/invitationCodes.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/invitationCodes.js
parenta0a482aa8efb3255a523de4524c8e09453d5571f (diff)
downloadwekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.tar.gz
wekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.tar.bz2
wekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.zip
Prettier & eslint project style update
Diffstat (limited to 'models/invitationCodes.js')
-rw-r--r--models/invitationCodes.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/models/invitationCodes.js b/models/invitationCodes.js
index 5cdfc744..75db5708 100644
--- a/models/invitationCodes.js
+++ b/models/invitationCodes.js
@@ -47,7 +47,7 @@ InvitationCodes.attachSchema(
type: Boolean,
defaultValue: true,
},
- })
+ }),
);
InvitationCodes.helpers({
@@ -56,11 +56,6 @@ InvitationCodes.helpers({
},
});
-InvitationCodes.before.update((userId, doc, fieldNames, modifier, options) => {
- modifier.$set = modifier.$set || {};
- modifier.$set.modifiedAt = Date.now();
-});
-
// InvitationCodes.before.insert((userId, doc) => {
// doc.createdAt = new Date();
// doc.authorId = userId;