mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-13 21:02:08 +08:00
fixes incorrect collection name in getStories function
This commit is contained in:
parent
41c8a97417
commit
10ca69391f
@ -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 : ''
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user