Răsfoiți Sursa

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

Martin Filser 2 ani în urmă
părinte
comite
b2f19ed714
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      server/publications/cards.js

+ 2 - 2
server/publications/cards.js

@@ -436,7 +436,7 @@ function buildSelector(queryParams) {
           case PREDICATE_CHECKLIST:
             selector.$and.push({
               _id: {
-                $in: Checklists.find({}, { fields: { cardId: 1 } }).map(
+                $in: ReactiveCache.getChecklists({}, { fields: { cardId: 1 } }).map(
                   a => a.cardId,
                 ),
               },
@@ -471,7 +471,7 @@ function buildSelector(queryParams) {
         { title: regex },
         { fields: { cardId: 1, checklistId: 1 } },
       );
-      const checklists = Checklists.find(
+      const checklists = ReactiveCache.getChecklists(
         {
           $or: [
             { title: regex },