diff options
author | fmonthel <fmonthel@flox-arts.net> | 2016-11-17 21:25:49 -0500 |
---|---|---|
committer | fmonthel <fmonthel@flox-arts.net> | 2016-11-17 21:25:49 -0500 |
commit | 584ab26aee7e242913ea3f9d901fec0c950225f0 (patch) | |
tree | 6abb4a6d1ccf4a2a6bac3d86df20b40c75914aa3 | |
parent | f71d2538fa15c9d8eb915d7b4dd9eb6a337d203d (diff) | |
download | wekan-584ab26aee7e242913ea3f9d901fec0c950225f0.tar.gz wekan-584ab26aee7e242913ea3f9d901fec0c950225f0.tar.bz2 wekan-584ab26aee7e242913ea3f9d901fec0c950225f0.zip |
[ENH] Add index on CardId into Comments collection
-rw-r--r-- | models/cardComments.js | 2 |
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, |