Fix board query

This commit is contained in:
Justin Reynolds 2019-08-06 16:41:56 -05:00
parent c33657e921
commit b31a74e9af

View file

@ -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(