summaryrefslogtreecommitdiffstats
path: root/models/cardComments.js
diff options
context:
space:
mode:
authorfmonthel <fmonthel@flox-arts.net>2016-11-17 21:25:49 -0500
committerfmonthel <fmonthel@flox-arts.net>2016-11-17 21:25:49 -0500
commit584ab26aee7e242913ea3f9d901fec0c950225f0 (patch)
tree6abb4a6d1ccf4a2a6bac3d86df20b40c75914aa3 /models/cardComments.js
parentf71d2538fa15c9d8eb915d7b4dd9eb6a337d203d (diff)
downloadwekan-584ab26aee7e242913ea3f9d901fec0c950225f0.tar.gz
wekan-584ab26aee7e242913ea3f9d901fec0c950225f0.tar.bz2
wekan-584ab26aee7e242913ea3f9d901fec0c950225f0.zip
[ENH] Add index on CardId into Comments collection
Diffstat (limited to 'models/cardComments.js')
-rw-r--r--models/cardComments.js2
1 files changed, 1 insertions, 1 deletions
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,