diff --git a/seasoned_api/src/webserver/controllers/request/requestTmdbId.js b/seasoned_api/src/webserver/controllers/request/requestTmdbId.js index 47c8b90..8f1c8a8 100644 --- a/seasoned_api/src/webserver/controllers/request/requestTmdbId.js +++ b/seasoned_api/src/webserver/controllers/request/requestTmdbId.js @@ -28,12 +28,10 @@ function requestTmdbIdController(req, res) { let mediaFunction = undefined; if (id === undefined || type === undefined) { - res - .status(422) - .send({ - success: false, - message: "'Missing parameteres: 'id' and/or 'type'" - }); + res.status(422).send({ + success: false, + message: "'Missing parameteres: 'id' and/or 'type'" + }); } if (type === "movie") { @@ -41,12 +39,10 @@ function requestTmdbIdController(req, res) { } else if (type === "show") { mediaFunction = tmdbShowInfo; } else { - res - .status(422) - .send({ - success: false, - message: 'Incorrect type. Allowed types: "movie" or "show"' - }); + res.status(422).send({ + success: false, + message: 'Incorrect type. Allowed types: "movie" or "show"' + }); } mediaFunction(id)