Explorar el Código

Move every Triggers.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)

Martin Filser hace 2 años
padre
commit
a423f7883e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      server/publications/rules.js

+ 2 - 2
server/publications/rules.js

@@ -21,7 +21,7 @@ Meteor.publish('allRules', () => {
 });
 
 Meteor.publish('allTriggers', () => {
-  const ret = Triggers.find({});
+  const ret = ReactiveCache.getTriggers({}, {}, true);
   return ret;
 });
 
@@ -45,7 +45,7 @@ Meteor.publish('rulesReport', () => {
   const ret = [
     rules,
     ReactiveCache.getActions({ _id: { $in: actionIds } }, {}, true),
-    Triggers.find({ _id: { $in: triggerIds } }),
+    ReactiveCache.getTriggers({ _id: { $in: triggerIds } }, {}, true),
     ReactiveCache.getBoards({ _id: { $in: boardIds } }, { fields: { title: 1 } }, true),
   ];
   return ret;