@tiledesk/tiledesk-server 2.3.6 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/routes/faq.js +7 -0
    
        package/package.json
    CHANGED
    
    
    
        package/routes/faq.js
    CHANGED
    
    | @@ -299,10 +299,17 @@ router.get('/', function (req, res, next) { | |
| 299 299 | 
             
                query.id_project = req.projectid
         | 
| 300 300 | 
             
              }
         | 
| 301 301 |  | 
| 302 | 
            +
              if (req.query.intent_display_name) {
         | 
| 303 | 
            +
                query.intent_display_name=req.query.intent_display_name
         | 
| 304 | 
            +
              }
         | 
| 305 | 
            +
              
         | 
| 306 | 
            +
             | 
| 302 307 | 
             
              winston.debug("GET FAQ query", query);
         | 
| 303 308 |  | 
| 304 309 | 
             
              // query.$text = {"$search": "question"};
         | 
| 305 310 |  | 
| 311 | 
            +
             | 
| 312 | 
            +
             | 
| 306 313 | 
             
              return Faq.find(query).
         | 
| 307 314 | 
             
              skip(skip).limit(limit).
         | 
| 308 315 | 
             
              populate({path:'faq_kb'})//, match: { trashed: { $in: [null, false] } }}).
         |