Do not include archived lists in global search help

This commit is contained in:
John R. Supplee 2021-03-28 02:45:15 +02:00
parent 103cfb936d
commit 39b4ada26d

View file

@ -378,8 +378,13 @@ Meteor.methods({
// my lists
return _.uniq(
Lists.find(
{ boardId: { $in: Boards.userBoardIds(this.userId) } },
{ fields: { title: 1 } },
{
boardId: { $in: Boards.userBoardIds(this.userId) },
archived: false,
},
{
fields: { title: 1 },
},
)
.fetch()
.map(list => {