diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-02-03 11:07:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-03 11:07:48 +0200 |
commit | 8bd7d624da47c7958052806b3443c4e59804103b (patch) | |
tree | f02fd2f40e8005cc4122eb3d1149958837031727 /models | |
parent | 40594485d869be1638ea619bf655cc1de2e079db (diff) | |
parent | 5b58b0b40c876ed58fb40f51436d05505d8b1548 (diff) | |
download | wekan-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.js | 11 |
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({ |