diff --git a/controllers/gameController.js b/controllers/gameController.js index a4075a7..ffbce92 100644 --- a/controllers/gameController.js +++ b/controllers/gameController.js @@ -4,7 +4,7 @@ var { GameModel } = require('../models/mediaModel'); module.exports = { list: function (req, res) { - GameModel.find({}, { _id: 0, __v: 0 }) + GameModel.find({}, { __v: 0 }) .then(games => { return res.json(games); }) diff --git a/controllers/mediaController.js b/controllers/mediaController.js index f6fdc09..df901da 100644 --- a/controllers/mediaController.js +++ b/controllers/mediaController.js @@ -13,7 +13,7 @@ module.exports = { list: function (req, res) { const MediaModel = req.baseUrl.includes('movies') ? MovieModel : SeriesModel; - MediaModel.find({}, { _id: 0, __v: 0 }) + MediaModel.find({}, { __v: 0 }) .then(media => { return res.json(media); }) diff --git a/views/list.hbs b/views/list.hbs index 3016fcd..88118c9 100644 --- a/views/list.hbs +++ b/views/list.hbs @@ -26,6 +26,7 @@