From 584ab26aee7e242913ea3f9d901fec0c950225f0 Mon Sep 17 00:00:00 2001 From: fmonthel Date: Thu, 17 Nov 2016 21:25:49 -0500 Subject: [ENH] Add index on CardId into Comments collection --- models/cardComments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/cardComments.js b/models/cardComments.js index 2cadb65e..070c148e 100644 --- a/models/cardComments.js +++ b/models/cardComments.js @@ -62,7 +62,7 @@ if (Meteor.isServer) { Meteor.startup(() => { CardComments._collection._ensureIndex({ cardId: 1, createdAt: -1 }); }); - + CardComments.after.insert((userId, doc) => { Activities.insert({ userId, -- cgit v1.2.3-1-g7c22