From 1b975829751e4ca55af835eeef253dab520fbe36 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 14 Jul 2023 14:04:47 -0500 Subject: [PATCH] Update dbMigration mappings --- server/utils/migrations/dbMigration.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server/utils/migrations/dbMigration.js b/server/utils/migrations/dbMigration.js index 12685371..cfaee54c 100644 --- a/server/utils/migrations/dbMigration.js +++ b/server/utils/migrations/dbMigration.js @@ -174,17 +174,17 @@ function migratePodcast(oldLibraryItem, LibraryItem) { const PodcastEpisode = { id: uuidv4(), index: oldEpisode.index, - season: oldEpisode.season, - episode: oldEpisode.episode, - episodeType: oldEpisode.episodeType, + season: oldEpisode.season || null, + episode: oldEpisode.episode || null, + episodeType: oldEpisode.episodeType || null, title: oldEpisode.title, - subtitle: oldEpisode.subtitle, - description: oldEpisode.description, - pubDate: oldEpisode.pubDate, + subtitle: oldEpisode.subtitle || null, + description: oldEpisode.description || null, + pubDate: oldEpisode.pubDate || null, enclosureURL: oldEpisode.enclosure?.url || null, enclosureSize: oldEpisode.enclosure?.length || null, enclosureType: oldEpisode.enclosure?.type || null, - publishedAt: oldEpisode.publishedAt, + publishedAt: oldEpisode.publishedAt || null, createdAt: oldEpisode.addedAt, updatedAt: oldEpisode.updatedAt, podcastId: Podcast.id,