Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

fix: testConnectionAsync url (#1024)

Yossi Hillalie34af8659b65
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<void> {
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") },
});
},