Skip to content

Commit

Permalink
Merge pull request #704 from podverse/develop
Browse files Browse the repository at this point in the history
Release v4.15.9
  • Loading branch information
mitchdowney authored Nov 20, 2023
2 parents 2340d8b + a124fd8 commit 11ab32c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 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.8",
"version": "4.15.9",
"description": "Data API, database migration scripts, and backend services for all Podverse models.",
"contributors": [
"Mitch Downey"
Expand Down
2 changes: 2 additions & 0 deletions src/controllers/playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ const getPlaylist = async (id) => {
const relations = [
'episodes',
'episodes.podcast',
'episodes.podcast.authors',
'mediaRefs',
'mediaRefs.episode',
'mediaRefs.episode.podcast',
'mediaRefs.episode.podcast.authors',
'owner'
]
const repository = getRepository(Playlist)
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/userHistoryItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const cleanUserItemResult = (result) => {
...(result.queuePosition || result.queuePosition === 0 ? { queuePosition: result.queuePosition } : {})
}
} else if (result.mediaRef) {
/*
/*
The next 2 if conditions use getMany instead of getRawMany.
getMany is useful here for getting the authors relationship.
I shouldn't have used getRawMany in the first place...
Expand Down

0 comments on commit 11ab32c

Please sign in to comment.