From e34af8659b6562e1ec3ebc502eff52ef3c699654 Mon Sep 17 00:00:00 2001 From: Yossi Hillali Date: Sun, 25 Aug 2024 12:56:08 +0300 Subject: [PATCH] fix: testConnectionAsync url (#1024) --- .../src/media-organizer/sonarr/sonarr-integration.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/integrations/src/media-organizer/sonarr/sonarr-integration.ts b/packages/integrations/src/media-organizer/sonarr/sonarr-integration.ts index 08a06d97c..0b18e2b0a 100644 --- a/packages/integrations/src/media-organizer/sonarr/sonarr-integration.ts +++ b/packages/integrations/src/media-organizer/sonarr/sonarr-integration.ts @@ -1,4 +1,3 @@ -import { appendPath } from "@homarr/common"; import { logger } from "@homarr/log"; import { z } from "@homarr/validation"; @@ -106,7 +105,7 @@ export class SonarrIntegration extends Integration { public async testConnectionAsync(): Promise { await super.handleTestConnectionResponseAsync({ queryFunctionAsync: async () => { - return await fetch(appendPath(this.integration.url, "/api/ping"), { + return await fetch(`${this.integration.url}/api`, { headers: { "X-Api-Key": super.getSecretValue("apiKey") }, }); },