mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Merge branch 'devel' of https://github.com/andresmanelli/wekan into andresmanelli-devel
This commit is contained in:
commit
d6ef4a8266
3 changed files with 8 additions and 4 deletions
|
|
@ -110,6 +110,7 @@ if (Meteor.isServer) {
|
||||||
if (activity.commentId) {
|
if (activity.commentId) {
|
||||||
const comment = activity.comment();
|
const comment = activity.comment();
|
||||||
params.comment = comment.text;
|
params.comment = comment.text;
|
||||||
|
params.commentId = comment._id;
|
||||||
}
|
}
|
||||||
if (activity.attachmentId) {
|
if (activity.attachmentId) {
|
||||||
const attachment = activity.attachment();
|
const attachment = activity.attachment();
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,10 @@ Meteor.methods({
|
||||||
text: `${text}`,
|
text: `${text}`,
|
||||||
};
|
};
|
||||||
|
|
||||||
['cardId', 'listId', 'oldListId', 'boardId'].forEach((key) => {
|
[ 'cardId', 'listId', 'oldListId',
|
||||||
|
'boardId', 'comment', 'user',
|
||||||
|
'card', 'commentId',
|
||||||
|
].forEach((key) => {
|
||||||
if (params[key]) value[key] = params[key];
|
if (params[key]) value[key] = params[key];
|
||||||
});
|
});
|
||||||
value.description = description;
|
value.description = description;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue