fix: testConnectionAsync url (#1024)
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import { appendPath } from "@homarr/common";
|
|
||||||
import { logger } from "@homarr/log";
|
import { logger } from "@homarr/log";
|
||||||
import { z } from "@homarr/validation";
|
import { z } from "@homarr/validation";
|
||||||
|
|
||||||
@@ -106,7 +105,7 @@ export class SonarrIntegration extends Integration {
|
|||||||
public async testConnectionAsync(): Promise<void> {
|
public async testConnectionAsync(): Promise<void> {
|
||||||
await super.handleTestConnectionResponseAsync({
|
await super.handleTestConnectionResponseAsync({
|
||||||
queryFunctionAsync: async () => {
|
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") },
|
headers: { "X-Api-Key": super.getSecretValue("apiKey") },
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user