@tiledesk/tiledesk-server 2.10.21 → 2.10.23

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
+ # 2.10.23
9
+ - Removed logs
10
+
11
+ # 2.10.22
12
+ - Test version (Alert)
13
+
8
14
  # 2.10.21
9
15
  - Added catch blocks where necessary (improves error management)
10
16
 
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.10.21",
4
+ "version": "2.10.23",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
package/routes/request.js CHANGED
@@ -420,7 +420,6 @@ router.put('/:requestid/participants', function (req, res) {
420
420
  // TODO make a synchronous chat21 version (with query parameter?) with request.support_group.created
421
421
  router.delete('/:requestid/participants/:participantid', function (req, res) {
422
422
  winston.debug(req.body);
423
-
424
423
  //removeParticipantByRequestId(request_id, id_project, member)
425
424
  return requestService.removeParticipantByRequestId(req.params.requestid, req.projectid, req.params.participantid).then(function (updatedRequest) {
426
425
 
@@ -428,8 +427,8 @@ router.delete('/:requestid/participants/:participantid', function (req, res) {
428
427
 
429
428
  return res.json(updatedRequest);
430
429
  }).catch((err) => {
431
- winston.error("(Request) removeParticipantByRequestId error", err)
432
- return res.status(400).send({ success: false, error: "Unable to removed the participant " + req.params.participantid + " from the request " + req.params.requestid})
430
+ //winston.error("(Request) removeParticipantByRequestId error", err)
431
+ return res.status(400).send({ success: false, error: "Unable to remove the participant " + req.params.participantid + " from the request " + req.params.requestid})
433
432
  });
434
433
 
435
434
 
@@ -2273,7 +2273,7 @@ class RequestService {
2273
2273
  //cacheinvalidation
2274
2274
  return request.save(function (err, savedRequest) {
2275
2275
  if (err) {
2276
- winston.error("Error saving removed participant ", err);
2276
+ //winston.error("Error saving removed participant ", err);
2277
2277
  return reject(err);
2278
2278
  }
2279
2279