mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Merge branch 'fmonthel-devel' into devel
This commit is contained in:
commit
816d2bd013
1 changed files with 10 additions and 7 deletions
|
@ -340,13 +340,16 @@ if (Meteor.isServer) {
|
|||
// Say goodbye to the former member
|
||||
if (modifier.$pull && modifier.$pull.members) {
|
||||
memberId = modifier.$pull.members;
|
||||
Activities.insert({
|
||||
userId,
|
||||
memberId,
|
||||
activityType: 'unjoinMember',
|
||||
boardId: doc.boardId,
|
||||
cardId: doc._id,
|
||||
});
|
||||
// Check that the former member is member of the card
|
||||
if (_.contains(doc.members, memberId)) {
|
||||
Activities.insert({
|
||||
userId,
|
||||
memberId,
|
||||
activityType: 'unjoinMember',
|
||||
boardId: doc.boardId,
|
||||
cardId: doc._id,
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue