@tiledesk/tiledesk-server 2.10.22 → 2.10.23

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.
package/CHANGELOG.md CHANGED
@@ -5,8 +5,11 @@
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
+
8
11
  # 2.10.22
9
- - Test versione (Alert)
12
+ - Test version (Alert)
10
13
 
11
14
  # 2.10.21
12
15
  - Added catch blocks where necessary (improves error management)
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.22",
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,12 +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
- console.log("\n/:requestid/participants/:participantid");
424
- console.log("Body:", req.body);
425
- console.log("Headers:", req.headers);
426
- console.log("Full URL:", `${req.protocol}://${req.get('host')}${req.originalUrl}`);
427
- console.log("Requestid:", req.params.requestid);
428
- console.log("Participantid:", req.params.participantid);
429
423
  //removeParticipantByRequestId(request_id, id_project, member)
430
424
  return requestService.removeParticipantByRequestId(req.params.requestid, req.projectid, req.params.participantid).then(function (updatedRequest) {
431
425
 
@@ -433,8 +427,8 @@ router.delete('/:requestid/participants/:participantid', function (req, res) {
433
427
 
434
428
  return res.json(updatedRequest);
435
429
  }).catch((err) => {
436
- winston.error("(Request) removeParticipantByRequestId error", err)
437
- 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})
438
432
  });
439
433
 
440
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