Explorar el Código

Fix #1561 Filter checklist items

Andrés Manelli hace 7 años
padre
commit
09bc8ac44c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      models/checklists.js

+ 2 - 2
models/checklists.js

@@ -34,9 +34,9 @@ Checklists.helpers({
     return ChecklistItems.find({ checklistId: this._id }).count();
     return ChecklistItems.find({ checklistId: this._id }).count();
   },
   },
   items() {
   items() {
-    return ChecklistItems.find(Filter.mongoSelector({
+    return ChecklistItems.find({
       checklistId: this._id,
       checklistId: this._id,
-    }), { sort: ['sort'] });
+    }, { sort: ['sort'] });
   },
   },
   finishedCount() {
   finishedCount() {
     return ChecklistItems.find({
     return ChecklistItems.find({