Skip to content

Commit

Permalink
Update lineTask.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Asing1001 committed Nov 6, 2023
1 parent 42cc6ee commit 20c35a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/task/lineTask.ts
Expand Up @@ -17,6 +17,7 @@ export async function updateLINEMovies() {
}

function mapToYahooMovieModel(item: LINEMovieItem): MovieBase | null {
const lineRating = item.rating? item.rating.average.toFixed(1): undefined;
const yahooMovie: MovieBase = {
lineMovieId: item.id,
lineUrlHash: item.url.hash,
Expand All @@ -29,7 +30,7 @@ function mapToYahooMovieModel(item: LINEMovieItem): MovieBase | null {
directors: item.directors,
actors: item.cast,
launchCompany: item.production,
lineRating: item.rating.average.toFixed(1),
lineRating,
summary: item.shortDescription,
};
return yahooMovie;
Expand Down

0 comments on commit 20c35a4

Please sign in to comment.