summaryrefslogtreecommitdiffstats
path: root/models/attachments.js
diff options
context:
space:
mode:
authorAngelo Gallarello <angelo.gallarell@gmail.com>2018-08-16 17:18:55 +0200
committerAngelo Gallarello <angelo.gallarell@gmail.com>2018-08-16 17:18:55 +0200
commitf7446ba9346d52431a9d37c8b4c856daf2c73621 (patch)
treeacfc752a7cf1d11ba40648aecd6e169eb8570a96 /models/attachments.js
parent9c6d374b950e8c4bd0c1c905cf36c953581a3156 (diff)
downloadwekan-f7446ba9346d52431a9d37c8b4c856daf2c73621.tar.gz
wekan-f7446ba9346d52431a9d37c8b4c856daf2c73621.tar.bz2
wekan-f7446ba9346d52431a9d37c8b4c856daf2c73621.zip
Remove attachment activity
Diffstat (limited to 'models/attachments.js')
-rw-r--r--models/attachments.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/models/attachments.js b/models/attachments.js
index 91dd0dbc..d769de34 100644
--- a/models/attachments.js
+++ b/models/attachments.js
@@ -86,5 +86,12 @@ if (Meteor.isServer) {
Activities.remove({
attachmentId: doc._id,
});
+ Activities.insert({
+ userId,
+ type: 'card',
+ activityType: 'deleteAttachment',
+ boardId: doc.boardId,
+ cardId: doc.cardId,
+ });
});
}