From 152e74288374103a7f03c7534fabef5feda47c4e Mon Sep 17 00:00:00 2001 From: Benjamin Lei Date: Fri, 1 Sep 2023 18:51:09 -0700 Subject: [PATCH] fixing season aggregate credit type --- src/endpoints/tv-seasons.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/endpoints/tv-seasons.ts b/src/endpoints/tv-seasons.ts index 68eb7c1..8f854a0 100644 --- a/src/endpoints/tv-seasons.ts +++ b/src/endpoints/tv-seasons.ts @@ -12,6 +12,7 @@ import { Videos, AppendToResponseTvSeasonKey, AppendToResponse, + AggregateCredits, } from '..'; import { BaseEndpoint } from './base'; @@ -45,8 +46,8 @@ export class TvSeasonsEndpoint extends BaseEndpoint { async aggregateCredits( seasonSelection: SeasonSelection, options?: LanguageOption - ) { - return await this.api.get( + ): Promise { + return await this.api.get( `${BASE_SEASON(seasonSelection)}/aggregate_credits`, options );