mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Add some parameters to webhook
This commit is contained in:
parent
eb945f26a3
commit
196f959f1d
2 changed files with 5 additions and 1 deletions
|
@ -110,6 +110,7 @@ if (Meteor.isServer) {
|
|||
if (activity.commentId) {
|
||||
const comment = activity.comment();
|
||||
params.comment = comment.text;
|
||||
params.commentId = comment._id;
|
||||
}
|
||||
if (activity.attachmentId) {
|
||||
const attachment = activity.attachment();
|
||||
|
|
|
@ -29,7 +29,10 @@ Meteor.methods({
|
|||
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];
|
||||
});
|
||||
value.description = description;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue