summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-02-03 11:07:48 +0200
committerGitHub <noreply@github.com>2017-02-03 11:07:48 +0200
commit8bd7d624da47c7958052806b3443c4e59804103b (patch)
treef02fd2f40e8005cc4122eb3d1149958837031727 /models
parent40594485d869be1638ea619bf655cc1de2e079db (diff)
parent5b58b0b40c876ed58fb40f51436d05505d8b1548 (diff)
downloadwekan-8bd7d624da47c7958052806b3443c4e59804103b.tar.gz
wekan-8bd7d624da47c7958052806b3443c4e59804103b.tar.bz2
wekan-8bd7d624da47c7958052806b3443c4e59804103b.zip
Merge pull request #65 from BaobabCoder/devel
Remove a list
Diffstat (limited to 'models')
-rw-r--r--models/lists.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/models/lists.js b/models/lists.js
index 9ae2e4f7..682fb096 100644
--- a/models/lists.js
+++ b/models/lists.js
@@ -105,6 +105,17 @@ if (Meteor.isServer) {
});
});
+ Lists.before.remove((userId, doc) => {
+ Activities.insert({
+ userId,
+ type: 'list',
+ activityType: 'removeList',
+ boardId: doc.boardId,
+ listId: doc._id,
+ title: doc.title,
+ });
+ });
+
Lists.after.update((userId, doc) => {
if (doc.archived) {
Activities.insert({