Browse Source

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

Martin Filser 2 years ago
parent
commit
8a98f03f1a
1 changed files with 2 additions and 2 deletions
  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,
       });