mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-08 19:52:50 +02:00
Update model casing & associations
This commit is contained in:
@@ -23,12 +23,12 @@ module.exports = (sequelize) => {
|
||||
publishedAt: DataTypes.DATE
|
||||
}, {
|
||||
sequelize,
|
||||
modelName: 'PodcastEpisode'
|
||||
modelName: 'podcastEpisode'
|
||||
})
|
||||
|
||||
const { Podcast } = sequelize.models
|
||||
Podcast.hasMany(PodcastEpisode)
|
||||
PodcastEpisode.belongsTo(Podcast)
|
||||
const { podcast } = sequelize.models
|
||||
podcast.hasMany(PodcastEpisode)
|
||||
PodcastEpisode.belongsTo(podcast)
|
||||
|
||||
return PodcastEpisode
|
||||
}
|
||||
Reference in New Issue
Block a user