Explorar el Código

Move every ChecklistItems.findOne(idOrFirstObjectSelector, options) to the ReactiveCache

Martin Filser hace 2 años
padre
commit
8a98f03f1a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      server/rulesHelper.js

+ 2 - 2
server/rulesHelper.js

@@ -293,7 +293,7 @@ RulesHelper = {
         title: action.checklistName,
         cardId: card._id,
       });
-      const checkItem = ChecklistItems.findOne({
+      const checkItem = ReactiveCache.getChecklistItem({
         title: action.checkItemName,
         checkListId: checkList._id,
       });
@@ -304,7 +304,7 @@ RulesHelper = {
         title: action.checklistName,
         cardId: card._id,
       });
-      const checkItem = ChecklistItems.findOne({
+      const checkItem = ReactiveCache.getChecklistItem({
         title: action.checkItemName,
         checkListId: checkList._id,
       });