summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJustin Reynolds <justinr1234@gmail.com>2019-08-06 16:41:56 -0500
committerJustin Reynolds <justinr1234@gmail.com>2019-08-06 16:41:56 -0500
commitb31a74e9afc4e093529e69ce171f753da1f0faae (patch)
tree12bc4d25cc8ef431c8b01635b580e72dc925a02c /server
parentc33657e9214b2dbb42b102400bbe8aa647e76c5c (diff)
downloadwekan-b31a74e9afc4e093529e69ce171f753da1f0faae.tar.gz
wekan-b31a74e9afc4e093529e69ce171f753da1f0faae.tar.bz2
wekan-b31a74e9afc4e093529e69ce171f753da1f0faae.zip
Fix board query
Diffstat (limited to 'server')
-rw-r--r--server/publications/boards.js2
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(