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 = { const PodcastEpisode = {
id: uuidv4(), id: uuidv4(),
index: oldEpisode.index, index: oldEpisode.index,
season: oldEpisode.season, season: oldEpisode.season || null,
episode: oldEpisode.episode, episode: oldEpisode.episode || null,
episodeType: oldEpisode.episodeType, episodeType: oldEpisode.episodeType || null,
title: oldEpisode.title, title: oldEpisode.title,
subtitle: oldEpisode.subtitle, subtitle: oldEpisode.subtitle || null,
description: oldEpisode.description, description: oldEpisode.description || null,
pubDate: oldEpisode.pubDate, pubDate: oldEpisode.pubDate || null,
enclosureURL: oldEpisode.enclosure?.url || null, enclosureURL: oldEpisode.enclosure?.url || null,
enclosureSize: oldEpisode.enclosure?.length || null, enclosureSize: oldEpisode.enclosure?.length || null,
enclosureType: oldEpisode.enclosure?.type || null, enclosureType: oldEpisode.enclosure?.type || null,
publishedAt: oldEpisode.publishedAt, publishedAt: oldEpisode.publishedAt || null,
createdAt: oldEpisode.addedAt, createdAt: oldEpisode.addedAt,
updatedAt: oldEpisode.updatedAt, updatedAt: oldEpisode.updatedAt,
podcastId: Podcast.id, podcastId: Podcast.id,