mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 11:21:36 +00:00
Rename methods and fix save bug
This commit is contained in:
parent
00bfb5ced4
commit
9ff5f2fc37
7 changed files with 69 additions and 69 deletions
|
|
@ -3,7 +3,7 @@ const { DataTypes, Model } = require('sequelize')
|
|||
/**
|
||||
* @typedef PodcastExpandedProperties
|
||||
* @property {import('./PodcastEpisode')[]} podcastEpisodes
|
||||
*
|
||||
*
|
||||
* @typedef {Podcast & PodcastExpandedProperties} PodcastExpanded
|
||||
*/
|
||||
|
||||
|
|
@ -127,7 +127,7 @@ class Podcast extends Model {
|
|||
}
|
||||
}
|
||||
|
||||
static async getAllIncomingFeeds() {
|
||||
static async getAllIWithFeedSubscriptions() {
|
||||
const podcasts = await this.findAll()
|
||||
const podcastsFiltered = podcasts.filter(p => p.dataValues.feedURL !== null);
|
||||
return podcastsFiltered.map(p => this.getOldPodcast({media: p.dataValues}))
|
||||
|
|
@ -154,7 +154,7 @@ class Podcast extends Model {
|
|||
|
||||
/**
|
||||
* Initialize model
|
||||
* @param {import('../Database').sequelize} sequelize
|
||||
* @param {import('../Database').sequelize} sequelize
|
||||
*/
|
||||
static init(sequelize) {
|
||||
super.init({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue