From a75a014002dd25eb5900edf123984e7e6cdb7de0 Mon Sep 17 00:00:00 2001 From: Jordan Welch Date: Sat, 12 Aug 2023 09:58:43 -0500 Subject: [PATCH] Fix Length --- __tests__/models/movie.spec.ts | 2 +- src/models/movie.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/models/movie.spec.ts b/__tests__/models/movie.spec.ts index 07413d9f..460a8f02 100644 --- a/__tests__/models/movie.spec.ts +++ b/__tests__/models/movie.spec.ts @@ -49,7 +49,7 @@ describe('toNotion', () => { Title: { title: [{ text: { content: movie.title } }] }, Director: { rich_text: [{ text: { content: movie.director } }] }, Year: { number: movie.year }, - Length: { number: movie.length }, + 'Length (mins)': { number: movie.length }, IMDb: { url: movie.imdbUrl }, Poster: { url: movie.posterUrl }, 'Theater Name': { rich_text: [{ text: { content: movie.theaterName } }] }, diff --git a/src/models/movie.ts b/src/models/movie.ts index 160437a1..0b8d8c1d 100644 --- a/src/models/movie.ts +++ b/src/models/movie.ts @@ -118,7 +118,7 @@ export default class Movie { Title: { title: [{ text: { content: this.title } }] }, Director: { rich_text: [{ text: { content: this.director ?? '' } }] }, Year: { number: this.year }, - Length: { number: this.length }, + 'Length (mins)': { number: this.length }, IMDb: { url: this.imdbUrl }, Poster: { url: this.posterUrl }, 'Theater Name': { rich_text: [{ text: { content: this.theaterName ?? '' } }] },