fix: Hotfix radarr & sonarr configuration breaking

This commit is contained in:
Aleksi Lassila
2023-08-19 04:21:37 +03:00
parent 90294ea8ce
commit 91c2dec7bb
2 changed files with 8 additions and 2 deletions

View File

@@ -28,8 +28,10 @@ export interface RadarrMovieOptions {
function getRadarrApi() {
const baseUrl = get(settings)?.radarr.baseUrl;
const apiKey = get(settings)?.radarr.apiKey;
const rootFolder = get(settings)?.radarr.rootFolderPath;
const qualityProfileId = get(settings)?.radarr.qualityProfileId;
if (!baseUrl || !apiKey) return undefined;
if (!baseUrl || !apiKey || !rootFolder || !qualityProfileId) return undefined;
console.log(baseUrl, apiKey);

View File

@@ -41,8 +41,12 @@ export interface SonarrSeriesOptions {
function getSonarrApi() {
const baseUrl = get(settings)?.sonarr.baseUrl;
const apiKey = get(settings)?.sonarr.apiKey;
const rootFolder = get(settings)?.sonarr.rootFolderPath;
const qualityProfileId = get(settings)?.sonarr.qualityProfileId;
const languageProfileId = get(settings)?.sonarr.languageProfileId;
if (!baseUrl || !apiKey) return undefined;
if (!baseUrl || !apiKey || !rootFolder || !qualityProfileId || !languageProfileId)
return undefined;
return createClient<paths>({
baseUrl,