diff options
Diffstat (limited to 'collections/unsavedEdits.js')
-rw-r--r-- | collections/unsavedEdits.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/collections/unsavedEdits.js b/collections/unsavedEdits.js index e9105daf..87a70e22 100644 --- a/collections/unsavedEdits.js +++ b/collections/unsavedEdits.js @@ -4,16 +4,16 @@ UnsavedEditCollection = new Mongo.Collection('unsaved-edits'); UnsavedEditCollection.attachSchema(new SimpleSchema({ fieldName: { - type: String + type: String, }, docId: { - type: String + type: String, }, value: { - type: String + type: String, }, userId: { - type: String + type: String, }, })); @@ -25,10 +25,10 @@ if (Meteor.isServer) { insert: isAuthor, update: isAuthor, remove: isAuthor, - fetch: ['userId'] + fetch: ['userId'], }); } -UnsavedEditCollection.before.insert(function(userId, doc) { +UnsavedEditCollection.before.insert((userId, doc) => { doc.userId = userId; }); |