mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Send result before webhook
This commit is contained in:
parent
196f959f1d
commit
de1ca1d12a
2 changed files with 4 additions and 4 deletions
|
|
@ -125,15 +125,15 @@ if (Meteor.isServer) {
|
||||||
boardId: paramBoardId,
|
boardId: paramBoardId,
|
||||||
});
|
});
|
||||||
|
|
||||||
const cardComment = CardComments.findOne({_id: id, cardId:paramCardId, boardId: paramBoardId });
|
|
||||||
commentCreation(req.body.authorId, cardComment);
|
|
||||||
|
|
||||||
JsonRoutes.sendResult(res, {
|
JsonRoutes.sendResult(res, {
|
||||||
code: 200,
|
code: 200,
|
||||||
data: {
|
data: {
|
||||||
_id: id,
|
_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) {
|
JsonRoutes.add('DELETE', '/api/boards/:boardId/cards/:cardId/comments/:commentId', function (req, res, next) {
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ Meteor.methods({
|
||||||
|
|
||||||
[ 'cardId', 'listId', 'oldListId',
|
[ 'cardId', 'listId', 'oldListId',
|
||||||
'boardId', 'comment', 'user',
|
'boardId', 'comment', 'user',
|
||||||
'card', 'commentId'
|
'card', 'commentId',
|
||||||
].forEach((key) => {
|
].forEach((key) => {
|
||||||
if (params[key]) value[key] = params[key];
|
if (params[key]) value[key] = params[key];
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue