From b31a74e9afc4e093529e69ce171f753da1f0faae Mon Sep 17 00:00:00 2001 From: Justin Reynolds Date: Tue, 6 Aug 2019 16:41:56 -0500 Subject: Fix board query --- server/publications/boards.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- cgit v1.2.3-1-g7c22