From 1ab84010f631385ce0f9f7e24a920f773b5a3c2d Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Tue, 2 Jun 2015 20:30:22 -0700 Subject: [PATCH] fix production issue --- controllers/story.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/story.js b/controllers/story.js index a828f70d05..46378dfcb4 100755 --- a/controllers/story.js +++ b/controllers/story.js @@ -182,7 +182,7 @@ exports.getStories = function(req, res, next) { } database.collection('stories').find({ '$text': { - '$search': req.body.data.searchValue + '$search': req.body.data ? req.body.data.searchValue : "" } }, { headline: 1,