From 84d1bf9e27621b4129895ccb579cc5d56793ff4b Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Fri, 12 Sep 2014 19:15:11 -0600 Subject: [PATCH] tmp(challenges): remove STW chal from tavern, revert with 4c6bcb544436a0343ed4b530c4f59805a689b61c --- src/controllers/groups.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/groups.js b/src/controllers/groups.js index 98398b329a..d00e27d0a7 100644 --- a/src/controllers/groups.js +++ b/src/controllers/groups.js @@ -33,6 +33,7 @@ var populateQuery = function(type, q){ q.populate('invites', nameFields); q.populate({ path: 'challenges', + match: (type=='habitrpg') ? {_id:{$ne:'95533e05-1ff9-4e46-970b-d77219f199e9'}} : undefined, // remove the Spread the Word Challenge for now, will revisit when we fix the closing-challenge bug select: challengeFields, options: {sort: {official: -1, timestamp: -1}} });