mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Show attachment name in Outgoing Webhook when attachment is removed from card.
Thanks to xet7 ! Related #2285
This commit is contained in:
parent
992ecfefa2
commit
23ccb3b991
1 changed files with 8 additions and 4 deletions
|
@ -88,18 +88,22 @@ if (Meteor.isServer) {
|
|||
}
|
||||
});
|
||||
|
||||
Attachments.files.after.remove((userId, doc) => {
|
||||
Activities.remove({
|
||||
attachmentId: doc._id,
|
||||
});
|
||||
Attachments.files.before.remove((userId, doc) => {
|
||||
Activities.insert({
|
||||
userId,
|
||||
type: 'card',
|
||||
activityType: 'deleteAttachment',
|
||||
attachmentId: doc._id,
|
||||
boardId: doc.boardId,
|
||||
cardId: doc.cardId,
|
||||
listId: doc.listId,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
});
|
||||
});
|
||||
|
||||
Attachments.files.after.remove((userId, doc) => {
|
||||
Activities.remove({
|
||||
attachmentId: doc._id,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue