summaryrefslogtreecommitdiffstats
path: root/models/lists.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/lists.js')
-rw-r--r--models/lists.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/lists.js b/models/lists.js
index a4938f67..9ae2e4f7 100644
--- a/models/lists.js
+++ b/models/lists.js
@@ -91,6 +91,10 @@ Lists.mutations({
Lists.hookOptions.after.update = { fetchPrevious: false };
if (Meteor.isServer) {
+ Meteor.startup(() => {
+ Lists._collection._ensureIndex({ boardId: 1 });
+ });
+
Lists.after.insert((userId, doc) => {
Activities.insert({
userId,