From 910f6380fc18401f0c89f2d40ec6c47c368668ee Mon Sep 17 00:00:00 2001 From: first last Date: Thu, 20 May 2021 13:59:56 -0400 Subject: [PATCH] Remove unnecessary structs --- src/Ombi/ClientApp/src/app/interfaces/IMovieDb.ts | 5 ----- .../src/app/services/applications/themoviedb.service.ts | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/Ombi/ClientApp/src/app/interfaces/IMovieDb.ts b/src/Ombi/ClientApp/src/app/interfaces/IMovieDb.ts index 4aaaf0741..63443ae4c 100644 --- a/src/Ombi/ClientApp/src/app/interfaces/IMovieDb.ts +++ b/src/Ombi/ClientApp/src/app/interfaces/IMovieDb.ts @@ -2,8 +2,3 @@ id: number; name: string; } - -export interface IMovieDbGenre { - id: number; - name: string; -} diff --git a/src/Ombi/ClientApp/src/app/services/applications/themoviedb.service.ts b/src/Ombi/ClientApp/src/app/services/applications/themoviedb.service.ts index c8303f58c..ff76d591b 100644 --- a/src/Ombi/ClientApp/src/app/services/applications/themoviedb.service.ts +++ b/src/Ombi/ClientApp/src/app/services/applications/themoviedb.service.ts @@ -4,7 +4,7 @@ import { Injectable, Inject } from "@angular/core"; import { empty, Observable, throwError } from "rxjs"; import { catchError } from "rxjs/operators"; -import { IMovieDbGenre, IMovieDbKeyword } from "../../interfaces"; +import { IMovieDbKeyword } from "../../interfaces"; import { ServiceHelpers } from "../service.helpers"; @Injectable() @@ -23,7 +23,7 @@ export class TheMovieDbService extends ServiceHelpers { .pipe(catchError((error: HttpErrorResponse) => error.status === 404 ? empty() : throwError(error))); } - public getGenres(media: string): Observable { - return this.http.get(`${this.url}/Genres/${media}`, { headers: this.headers }) + public getGenres(media: string): Observable { + return this.http.get(`${this.url}/Genres/${media}`, { headers: this.headers }) } }