diff options
author | Justin Reynolds <justinr1234@gmail.com> | 2019-08-06 16:41:56 -0500 |
---|---|---|
committer | Justin Reynolds <justinr1234@gmail.com> | 2019-08-06 16:41:56 -0500 |
commit | b31a74e9afc4e093529e69ce171f753da1f0faae (patch) | |
tree | 12bc4d25cc8ef431c8b01635b580e72dc925a02c | |
parent | c33657e9214b2dbb42b102400bbe8aa647e76c5c (diff) | |
download | wekan-b31a74e9afc4e093529e69ce171f753da1f0faae.tar.gz wekan-b31a74e9afc4e093529e69ce171f753da1f0faae.tar.bz2 wekan-b31a74e9afc4e093529e69ce171f753da1f0faae.zip |
Fix board query
-rw-r--r-- | server/publications/boards.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/publications/boards.js b/server/publications/boards.js index 96ef3054..5037938d 100644 --- a/server/publications/boards.js +++ b/server/publications/boards.js @@ -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( |