Skip to content

Commit

Permalink
refactor(rules): Refactored solution of #698
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenn92 committed Jan 2, 2024
1 parent 5567a83 commit 72f4717
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/modules/api/plex-api/plex-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ export class PlexApiService {
return {
status: 'NOK',
code: 0,
message: e,
message: e.message,
} as BasicResponseDto;
}
}
Expand Down
6 changes: 5 additions & 1 deletion server/src/modules/collections/collections.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,11 @@ export class CollectionsService {
}
}

if (collectionMedia.length <= 0 && !collection.manualCollection) {
if (
collectionMedia.length <= 0 &&
!collection.manualCollection &&
collection.plexId
) {
const resp = await this.plexApi.deleteCollection(
collection.plexId.toString(),
);
Expand Down

0 comments on commit 72f4717

Please sign in to comment.