2
0
Эх сурвалжийг харах

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

Martin Filser 2 жил өмнө
parent
commit
8a98f03f1a
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  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,
       });