From 143e93f483c947185d7db1380bad23005e3d946c Mon Sep 17 00:00:00 2001 From: windblow Date: Sat, 6 Apr 2019 12:45:31 +0300 Subject: Add variables for activity notifications Fixes #2285 --- models/cards.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'models/cards.js') diff --git a/models/cards.js b/models/cards.js index 047a760e..e65d88ae 100644 --- a/models/cards.js +++ b/models/cards.js @@ -1355,6 +1355,7 @@ function cardState(userId, doc, fieldNames) { boardId: doc.boardId, listId: doc.listId, cardId: doc._id, + swimlaneId: doc.swimlaneId, }); } else { Activities.insert({ @@ -1364,6 +1365,7 @@ function cardState(userId, doc, fieldNames) { listName: Lists.findOne(doc.listId).title, listId: doc.listId, cardId: doc._id, + swimlaneId: doc.swimlaneId, }); } } @@ -1425,6 +1427,8 @@ function cardLabels(userId, doc, fieldNames, modifier) { activityType: 'addedLabel', boardId: doc.boardId, cardId: doc._id, + listId: doc.listId, + swimlaneId: doc.swimlaneId, }; Activities.insert(act); } @@ -1441,6 +1445,8 @@ function cardLabels(userId, doc, fieldNames, modifier) { activityType: 'removedLabel', boardId: doc.boardId, cardId: doc._id, + listId: doc.listId, + swimlaneId: doc.swimlaneId, }); } } -- cgit v1.2.3-1-g7c22