mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 03:11:34 +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
|
|
@ -105,12 +105,12 @@ class PodcastController {
|
|||
|
||||
/**
|
||||
* POST: /api/podcasts/feed
|
||||
*
|
||||
*
|
||||
* @typedef getPodcastFeedReqBody
|
||||
* @property {string} rssFeed
|
||||
*
|
||||
* @param {import('express').Request<{}, {}, getPodcastFeedReqBody, {}} req
|
||||
* @param {import('express').Response} res
|
||||
*
|
||||
* @param {import('express').Request<{}, {}, getPodcastFeedReqBody, {}} req
|
||||
* @param {import('express').Response} res
|
||||
*/
|
||||
async getPodcastFeed(req, res) {
|
||||
if (!req.user.isAdminOrUp) {
|
||||
|
|
@ -130,8 +130,8 @@ class PodcastController {
|
|||
res.json({ podcast })
|
||||
}
|
||||
|
||||
async getPodcastsWithIncomingFeeds(req, res) {
|
||||
const podcasts = await Database.podcastModel.getAllIncomingFeeds()
|
||||
async getPodcastsWithExternalFeedsSubscriptions(req, res) {
|
||||
const podcasts = await Database.podcastModel.getAllIWithFeedSubscriptions()
|
||||
res.json({
|
||||
podcasts
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue