mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Fix board query
This commit is contained in:
parent
c33657e921
commit
b31a74e9af
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ Meteor.publish('boards', function() {
|
||||||
|
|
||||||
// Defensive programming to verify that starredBoards has the expected
|
// Defensive programming to verify that starredBoards has the expected
|
||||||
// format -- since the field is in the `profile` a user can modify it.
|
// format -- since the field is in the `profile` a user can modify it.
|
||||||
const { starredBoards = [] } = Users.findOne(this.userId).profile || {};
|
const { starredBoards = [] } = Users.findOne(this.userId).profile || [];
|
||||||
check(starredBoards, [String]);
|
check(starredBoards, [String]);
|
||||||
|
|
||||||
return Boards.find(
|
return Boards.find(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue