Skip to content

Commit

Permalink
query limit increased
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanPMcNeil committed Jul 27, 2022
1 parent 8398d7b commit b8bb689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/game.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports.createGame = (req, res) => {
}

module.exports.allGames = (req, res) => {
Game.find().sort({ "createdAt": "desc" }).limit(10)
Game.find().sort({ "createdAt": "desc" }).limit(25)
.then(allGames => res.json(allGames))
.catch(err => res.json({ message: "Error finding all games!", error: err }))
}
Expand Down

0 comments on commit b8bb689

Please sign in to comment.