mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04: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
|
||||
// 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]);
|
||||
|
||||
return Boards.find(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue