@tiledesk/tiledesk-server 2.3.93 → 2.3.94
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.
| @@ -79,7 +79,7 @@ router.post('/', function (req, res) { | |
| 79 79 |  | 
| 80 80 | 
             
                    if (cacheEnabler.request) {
         | 
| 81 81 | 
             
                      q.cache(cacheUtil.defaultTTL, "requests:request_id:"+message.recipient+":simple"); //request_cache
         | 
| 82 | 
            -
                                                                                                        // project_id not available
         | 
| 82 | 
            +
                                                                                                        // project_id not available //without project for chat21 webhook
         | 
| 83 83 | 
             
                      winston.debug('request cache enabled');
         | 
| 84 84 | 
             
                    }
         | 
| 85 85 | 
             
                    return q.exec(function(err, request) {
         | 
| @@ -391,6 +391,7 @@ router.post('/', function (req, res) { | |
| 391 391 | 
             
                          var query = {request_id: recipient_id, id_project: projectId};
         | 
| 392 392 | 
             
                          winston.debug('query:'+ projectId);
         | 
| 393 393 |  | 
| 394 | 
            +
                          winston.debug('conversation-archived Request.findOne(query);:');
         | 
| 394 395 | 
             
                          let q = Request.findOne(query);
         | 
| 395 396 | 
             
                          // if (cacheEnabler.request) {
         | 
| 396 397 | 
             
                          //   q.cache(cacheUtil.defaultTTL, projectId+":requests:request_id:"+recipient_id+":simple"); //request_cache NOT IMPORTANT HERE
         | 
| @@ -477,6 +478,7 @@ router.post('/', function (req, res) { | |
| 477 478 | 
             
                  winston.debug("id_project: " + id_project);
         | 
| 478 479 |  | 
| 479 480 | 
             
                  // requestcachefarequi populaterequired
         | 
| 481 | 
            +
                  winston.debug('join-member Request.findOne(query);:');
         | 
| 480 482 | 
             
                  return Request.findOne({request_id: request_id, id_project: id_project})
         | 
| 481 483 | 
             
                      .populate('lead') //TODO posso prenderlo da snapshot senza populate cache_attention
         | 
| 482 484 | 
             
                      .exec(function(err, request) {
         | 
| @@ -647,6 +649,7 @@ else if (req.body.event_type == "typing-start") { | |
| 647 649 |  | 
| 648 650 |  | 
| 649 651 | 
             
              // requestcachefarequi nocachepopulatereqired
         | 
| 652 | 
            +
              winston.debug('typing-start Request.findOne(query);:');
         | 
| 650 653 | 
             
              return Request.findOne({request_id: recipient_id})
         | 
| 651 654 | 
             
                                         //TOD  errore cache sistemare e riabbilitare->
         | 
| 652 655 | 
             
              // .cache(cacheUtil.defaultTTL, req.projectid+":requests:request_id:"+recipient_id)   cache_attention
         | 
| @@ -847,7 +850,7 @@ else if (req.body.event_type == "new-group") { | |
| 847 850 | 
             
              res.json("new-group event_type is not implemented");
         | 
| 848 851 | 
             
            }
         | 
| 849 852 | 
             
            else {
         | 
| 850 | 
            -
              winston. | 
| 853 | 
            +
              winston.debug("Chat21WebHook error event_type not implemented", req.body);
         | 
| 851 854 | 
             
              res.json("Not implemented");
         | 
| 852 855 | 
             
            }
         | 
| 853 856 |  |