fixes incorrect collection name in getStories function
This commit is contained in:
@ -211,7 +211,7 @@ module.exports = function(app) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
database.collection('stories').find({
|
database.collection('story').find({
|
||||||
'$text': {
|
'$text': {
|
||||||
'$search': req.body.data ? req.body.data.searchValue : ''
|
'$search': req.body.data ? req.body.data.searchValue : ''
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user