@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 +6 -0
- package/package.json +1 -1
- package/routes/request.js +2 -3
- package/services/requestService.js +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
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
|
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
|
|