@tiledesk/tiledesk-server 2.4.49 → 2.4.50
Sign up to get free protection for your applications and to get access to all the features.
@@ -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 {
|