Browse Source

Global Search, Checklist-Items are searched now too

Martin Filser 3 years ago
parent
commit
ccc0b3bcf9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      server/publications/cards.js

+ 2 - 2
server/publications/cards.js

@@ -404,7 +404,7 @@ function buildSelector(queryParams) {
 
       const items = ChecklistItems.find(
         { title: regex },
-        { fields: { cardId: 1 } },
+        { fields: { cardId: 1, checklistId: 1 } },
       );
       const checklists = Checklists.find(
         {
@@ -610,7 +610,7 @@ function findCards(sessionId, query) {
   // console.log('selector:', query.selector);
   // console.log('selector.$and:', query.selector.$and);
   // eslint-disable-next-line no-console
-  // console.log('projection:', projection);
+  // console.log('projection:', query.projection);
 
   const cards = Cards.find(query.selector, query.projection);
   // eslint-disable-next-line no-console