mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 18:30:13 +01:00
add linkedBoard Activities to selector
This commit is contained in:
parent
d52e0bcb6e
commit
bf6bfc8ed6
3 changed files with 26 additions and 4 deletions
|
|
@ -773,7 +773,15 @@ Boards.helpers({
|
|||
},
|
||||
|
||||
activities() {
|
||||
return Activities.find({ boardId: this._id }, { sort: { createdAt: -1 } });
|
||||
let linkedBoardId = [this._id];
|
||||
Cards.find({
|
||||
"type": "cardType-linkedBoard",
|
||||
"boardId": this._id}
|
||||
).forEach(card => {
|
||||
linkedBoardId.push(card.linkedId);
|
||||
});
|
||||
return Activities.find({ boardId: { $in: linkedBoardId } }, { sort: { createdAt: -1 } });
|
||||
//return Activities.find({ boardId: this._id }, { sort: { createdAt: -1 } });
|
||||
},
|
||||
|
||||
activeMembers(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue