mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-26 16:48:53 +01:00
Update dbMigration mappings
This commit is contained in:
parent
9b7aacf3ea
commit
1b97582975
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user