Skip to content

Commit

Permalink
Merge pull request #702 from podverse/develop
Browse files Browse the repository at this point in the history
Release v4.15.7
  • Loading branch information
mitchdowney authored Nov 18, 2023
2 parents b89eca7 + 645d197 commit c535d05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "podverse-api",
"version": "4.15.6",
"version": "4.15.7",
"description": "Data API, database migration scripts, and backend services for all Podverse models.",
"contributors": [
"Mitch Downey"
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ const addOrRemovePlaylistItem = async (playlistId, mediaRefId, episodeId, logged
if (mediaRefId) {
// If no mediaRefs match filter, add the playlist item. Else, remove the playlist item.
const filteredMediaRefs = mediaRefs.filter((x) => x.id !== mediaRefId)
const mediaRefWasRemoved = filteredMediaRefs.length === mediaRefs.length
const mediaRefWasRemoved = filteredMediaRefs.length !== mediaRefs.length
if (mediaRefWasRemoved) {
actionTaken = 'removed'
playlist.mediaRefs = filteredMediaRefs
Expand All @@ -298,7 +298,7 @@ const addOrRemovePlaylistItem = async (playlistId, mediaRefId, episodeId, logged
} else if (episodeId) {
// If no episodes match filter, add the playlist item. Else, remove the playlist item.
const filteredEpisodes = episodes.filter((x) => x.id !== episodeId)
const episodeWasRemoved = filteredEpisodes.length === episodes.length
const episodeWasRemoved = filteredEpisodes.length !== episodes.length
if (episodeWasRemoved) {
actionTaken = 'removed'
playlist.episodes = filteredEpisodes
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/secondaryQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const getSecondaryQueueEpisodesForPodcastId = async (
}

const { itunesEpisode, pubDate } = currentEpisode
const take = currentEpisode.podcast.medium === 'music' ? 50 : 5
const take = currentEpisode.podcast.medium === 'music' ? 50 : 10

const previousEpisodesAndWhere =
currentEpisode.podcast.medium === 'music'
Expand Down

0 comments on commit c535d05

Please sign in to comment.