Rename methods and fix save bug

This commit is contained in:
mfcar 2024-05-12 00:39:49 +01:00
parent 00bfb5ced4
commit 9ff5f2fc37
No known key found for this signature in database
7 changed files with 69 additions and 69 deletions

View file

@ -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
})