Skip to content

Commit

Permalink
fix: make language as optional, to fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kiremitrov123 committed Sep 19, 2024
1 parent 7f91564 commit 392ee47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/common/src/services/ApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default class ApiService {
return transformedMediaItem;
};

private transformEpisodes = (episodesRes: EpisodesRes, language: string, seasonNumber?: number) => {
private transformEpisodes = (episodesRes: EpisodesRes, language?: string, seasonNumber?: number) => {
const { episodes, page, page_limit, total } = episodesRes;

// Adding images and keys for media items
Expand Down Expand Up @@ -276,7 +276,7 @@ export default class ApiService {
pageOffset?: number;
pageLimit?: number;
afterId?: string;
language: string;
language?: string;
}): Promise<EpisodesWithPagination> => {
if (!seriesId) {
throw new Error('Series ID is required');
Expand Down

0 comments on commit 392ee47

Please sign in to comment.