diff --git a/server/controllers/SeriesController.js b/server/controllers/SeriesController.js index 678f30e0..c5b56edf 100644 --- a/server/controllers/SeriesController.js +++ b/server/controllers/SeriesController.js @@ -32,7 +32,9 @@ class SeriesController { var limit = (req.query.limit && !isNaN(req.query.limit)) ? Number(req.query.limit) : 25 var series = this.db.series.filter(se => se.name.toLowerCase().includes(q)) series = series.slice(0, limit) - res.json(series) + res.json({ + results: series + }) } async update(req, res) {