Fix board query

reviewable/pr2587/r1
Justin Reynolds 6 years ago
parent c33657e921
commit b31a74e9af
  1. 2
      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(

Loading…
Cancel
Save