summaryrefslogtreecommitdiffstats
path: root/models/cardComments.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2017-09-29 18:40:44 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2017-09-29 18:47:40 -0300
commitde1ca1d12ac8f347b82ce732f45c7e07ccf09d86 (patch)
tree4734d4aa4d4f277b0a386d201cbcd6037804ea12 /models/cardComments.js
parent196f959f1d9d5bbea7c77082219c3723e2755fe4 (diff)
downloadwekan-de1ca1d12ac8f347b82ce732f45c7e07ccf09d86.tar.gz
wekan-de1ca1d12ac8f347b82ce732f45c7e07ccf09d86.tar.bz2
wekan-de1ca1d12ac8f347b82ce732f45c7e07ccf09d86.zip
Send result before webhook
Diffstat (limited to 'models/cardComments.js')
-rw-r--r--models/cardComments.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/cardComments.js b/models/cardComments.js
index 352030f1..cc1c55bc 100644
--- a/models/cardComments.js
+++ b/models/cardComments.js
@@ -125,15 +125,15 @@ if (Meteor.isServer) {
boardId: paramBoardId,
});
- const cardComment = CardComments.findOne({_id: id, cardId:paramCardId, boardId: paramBoardId });
- commentCreation(req.body.authorId, cardComment);
-
JsonRoutes.sendResult(res, {
code: 200,
data: {
_id: id,
},
});
+
+ const cardComment = CardComments.findOne({_id: id, cardId:paramCardId, boardId: paramBoardId });
+ commentCreation(req.body.authorId, cardComment);
});
JsonRoutes.add('DELETE', '/api/boards/:boardId/cards/:cardId/comments/:commentId', function (req, res, next) {