summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/cardComments.js6
-rw-r--r--server/notifications/outgoing.js2
2 files changed, 4 insertions, 4 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) {
diff --git a/server/notifications/outgoing.js b/server/notifications/outgoing.js
index e6959c0e..ed3d8df7 100644
--- a/server/notifications/outgoing.js
+++ b/server/notifications/outgoing.js
@@ -31,7 +31,7 @@ Meteor.methods({
[ 'cardId', 'listId', 'oldListId',
'boardId', 'comment', 'user',
- 'card', 'commentId'
+ 'card', 'commentId',
].forEach((key) => {
if (params[key]) value[key] = params[key];
});