From f7446ba9346d52431a9d37c8b4c856daf2c73621 Mon Sep 17 00:00:00 2001 From: Angelo Gallarello Date: Thu, 16 Aug 2018 17:18:55 +0200 Subject: Remove attachment activity --- models/attachments.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'models/attachments.js') 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, + }); }); } -- cgit v1.2.3-1-g7c22