فهرست منبع

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

Martin Filser 2 سال پیش
والد
کامیت
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,
       });