@tiledesk/tiledesk-server 2.4.49 → 2.4.50
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.
|
@@ -312,7 +312,8 @@ router.post('/', function (req, res) {
|
|
|
312
312
|
// TODO it doesn't work for internal requests bacause participanets == message.sender⁄
|
|
313
313
|
if (request.participants && request.participants.indexOf(message.sender) > -1) { //update waiitng time if write an agent (member of participants)
|
|
314
314
|
winston.debug("updateWaitingTimeByRequestId*******");
|
|
315
|
-
|
|
315
|
+
//leave this parameter to true because it is used by websocket to notify request.update
|
|
316
|
+
return requestService.updateWaitingTimeByRequestId(request.request_id, request.id_project, true).then(function(upRequest) {
|
|
316
317
|
return res.json(upRequest);
|
|
317
318
|
});
|
|
318
319
|
}else {
|