From 10ca69391fa47d1fb40ec74b0f44cfcc26510bbe Mon Sep 17 00:00:00 2001 From: Arsen Melikyan Date: Mon, 2 Nov 2015 20:25:06 +0400 Subject: [PATCH] fixes incorrect collection name in getStories function --- server/boot/story.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/boot/story.js b/server/boot/story.js index a883a30280..6c5bdea63a 100755 --- a/server/boot/story.js +++ b/server/boot/story.js @@ -211,7 +211,7 @@ module.exports = function(app) { if (err) { return next(err); } - database.collection('stories').find({ + database.collection('story').find({ '$text': { '$search': req.body.data ? req.body.data.searchValue : '' }