summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-08-07 00:46:59 +0300
committerGitHub <noreply@github.com>2019-08-07 00:46:59 +0300
commitb23282d42666d1d7f423220dbdccb66a822513b6 (patch)
tree3053a03a1fd9f692171955438c80dd66123265f0
parent603aa1dfc8217f9d206c9f8257d057ab117b918c (diff)
parentb31a74e9afc4e093529e69ce171f753da1f0faae (diff)
downloadwekan-b23282d42666d1d7f423220dbdccb66a822513b6.tar.gz
wekan-b23282d42666d1d7f423220dbdccb66a822513b6.tar.bz2
wekan-b23282d42666d1d7f423220dbdccb66a822513b6.zip
Merge pull request #2587 from justinr1234/fix-board-query
Fix board query
-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(