Performance Enhancements

This commit is contained in:
Justin Reynolds 2019-02-28 11:44:29 -06:00
parent 904b5bf0f5
commit 3c49e2d0ed
7 changed files with 51 additions and 15 deletions

View file

@ -189,6 +189,7 @@ function publishChekListUncompleted(userId, doc){
if (Meteor.isServer) {
Meteor.startup(() => {
ChecklistItems._collection._ensureIndex({ checklistId: 1 });
ChecklistItems._collection._ensureIndex({ cardId: 1 });
});
ChecklistItems.after.update((userId, doc, fieldNames) => {