diff --git a/server/utils/map.js b/server/utils/map.js index d363506ebe0..99b67d159aa 100644 --- a/server/utils/map.js +++ b/server/utils/map.js @@ -33,7 +33,8 @@ const getFirstChallenge = _.once(_getFirstChallenge); */ export function _cachedMap({ Block, Challenge }) { const challenges = Challenge.find$({ - order: [ 'order ASC', 'suborder ASC' ] + order: [ 'order ASC', 'suborder ASC' ], + where: { isPrivate: false } }); const challengeMap = challenges .map( @@ -44,7 +45,10 @@ export function _cachedMap({ Block, Challenge }) { return hash; }, {}) ); - const blocks = Block.find$({ order: [ 'superOrder ASC', 'order ASC' ] }); + const blocks = Block.find$({ + order: [ 'superOrder ASC', 'order ASC' ], + where: { isPrivate: false } + }); const blockMap = Observable.combineLatest( blocks.map( blocks => blocks