Update dbMigration mappings

This commit is contained in:
advplyr 2023-07-14 14:04:47 -05:00
parent 9b7aacf3ea
commit 1b97582975

View File

@ -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,