Lining
This commit is contained in:
		@@ -28,9 +28,7 @@ function requestTmdbIdController(req, res) {
 | 
			
		||||
  let mediaFunction = undefined;
 | 
			
		||||
 | 
			
		||||
  if (id === undefined || type === undefined) {
 | 
			
		||||
    res
 | 
			
		||||
      .status(422)
 | 
			
		||||
      .send({
 | 
			
		||||
    res.status(422).send({
 | 
			
		||||
      success: false,
 | 
			
		||||
      message: "'Missing parameteres: 'id' and/or 'type'"
 | 
			
		||||
    });
 | 
			
		||||
@@ -41,9 +39,7 @@ function requestTmdbIdController(req, res) {
 | 
			
		||||
  } else if (type === "show") {
 | 
			
		||||
    mediaFunction = tmdbShowInfo;
 | 
			
		||||
  } else {
 | 
			
		||||
    res
 | 
			
		||||
      .status(422)
 | 
			
		||||
      .send({
 | 
			
		||||
    res.status(422).send({
 | 
			
		||||
      success: false,
 | 
			
		||||
      message: 'Incorrect type. Allowed types: "movie" or "show"'
 | 
			
		||||
    });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user