summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-04-06 14:04:09 +0300
committerGitHub <noreply@github.com>2019-04-06 14:04:09 +0300
commita6e1dc4269eae8e81a4584a167c44089f393925c (patch)
tree72d08bb712fe734a8dd5dab527b195e154a67f05 /models/cards.js
parentad241b9f846cefa14dec6fd979870a715d774705 (diff)
parent143e93f483c947185d7db1380bad23005e3d946c (diff)
downloadwekan-a6e1dc4269eae8e81a4584a167c44089f393925c.tar.gz
wekan-a6e1dc4269eae8e81a4584a167c44089f393925c.tar.bz2
wekan-a6e1dc4269eae8e81a4584a167c44089f393925c.zip
Merge pull request #2320 from rinnaz/fix/issue-2285
Add variables for activity notifications Fixes #2285
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/models/cards.js b/models/cards.js
index 6de95123..7430ae52 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -1356,6 +1356,7 @@ function cardState(userId, doc, fieldNames) {
boardId: doc.boardId,
listId: doc.listId,
cardId: doc._id,
+ swimlaneId: doc.swimlaneId,
});
} else {
Activities.insert({
@@ -1365,6 +1366,7 @@ function cardState(userId, doc, fieldNames) {
listName: Lists.findOne(doc.listId).title,
listId: doc.listId,
cardId: doc._id,
+ swimlaneId: doc.swimlaneId,
});
}
}
@@ -1426,6 +1428,8 @@ function cardLabels(userId, doc, fieldNames, modifier) {
activityType: 'addedLabel',
boardId: doc.boardId,
cardId: doc._id,
+ listId: doc.listId,
+ swimlaneId: doc.swimlaneId,
};
Activities.insert(act);
}
@@ -1442,6 +1446,8 @@ function cardLabels(userId, doc, fieldNames, modifier) {
activityType: 'removedLabel',
boardId: doc.boardId,
cardId: doc._id,
+ listId: doc.listId,
+ swimlaneId: doc.swimlaneId,
});
}
}