Merge pull request #65 from BaobabCoder/devel

Remove a list
This commit is contained in:
Lauri Ojansivu 2017-02-03 11:07:48 +02:00 committed by GitHub
commit 8bd7d624da
24 changed files with 44 additions and 1 deletions

View file

@ -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({