Skip to content

Commit dd69bf7

Browse files
committed
apply filters on shared boards
1 parent d765021 commit dd69bf7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routes/boards.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,11 @@ router.get(
425425
'/share/:boardId',
426426
wrapAsync(async (req, res) => {
427427
const { boardId } = req.params
428+
const filters = (await Board.findById(boardId)).filters
428429
const board = await Board.findById(boardId).populate([
429430
{
430431
path: 'tasks',
432+
match: transformFilters(filters),
431433
populate: [
432434
{
433435
path: 'watcher',

0 commit comments

Comments
 (0)