@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
- return requestService.updateWaitingTimeByRequestId(request.request_id, request.id_project, false).then(function(upRequest) {
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 {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-server",
3
3
  "description": "The Tiledesk server module",
4
- "version": "2.4.49",
4
+ "version": "2.4.50",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",