Skip to content

Commit

Permalink
fix(plex): Fixed an issue where fetching Plex users would fail if con…
Browse files Browse the repository at this point in the history
…nection to plex.tv failed
  • Loading branch information
jorenn92 committed Dec 27, 2023
1 parent 386b1de commit 2458a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/modules/rules/getter/plex-getter.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export class PlexGetterService {
const plexTvUsers = await this.plexApi.getUserDataFromPlexTv();

return (await this.plexApi.getUsers()).map((el) => {
const plextv = plexTvUsers.find(tvEl => tvEl.$?.id == el.id)
const plextv = plexTvUsers?.find(tvEl => tvEl.$?.id == el.id)

// use the username from plex.tv if available, since Overseerr also does this
if (plextv && plextv.$ && plextv.$.username) {
Expand Down

0 comments on commit 2458a8f

Please sign in to comment.