diff --git a/apps/code/src/renderer/api/posthogClient.ts b/apps/code/src/renderer/api/posthogClient.ts index dc4721d05..e47c4e63e 100644 --- a/apps/code/src/renderer/api/posthogClient.ts +++ b/apps/code/src/renderer/api/posthogClient.ts @@ -1477,18 +1477,15 @@ export class PostHogAPIClient { } } - async getIntegrations(kind?: string) { + async getIntegrations() { const teamId = await this.getTeamId(); - return this.getIntegrationsForProject(teamId, kind); + return this.getIntegrationsForProject(teamId); } - async getIntegrationsForProject(projectId: number, kind?: string) { + async getIntegrationsForProject(projectId: number) { const url = new URL( `${this.api.baseUrl}/api/environments/${projectId}/integrations/`, ); - if (kind) { - url.searchParams.set("kind", kind); - } const response = await this.api.fetcher.fetch({ method: "get", url, diff --git a/apps/code/src/renderer/hooks/useIntegrations.ts b/apps/code/src/renderer/hooks/useIntegrations.ts index c8761ac3c..05f18af9e 100644 --- a/apps/code/src/renderer/hooks/useIntegrations.ts +++ b/apps/code/src/renderer/hooks/useIntegrations.ts @@ -78,7 +78,7 @@ export function useIntegrations() { const query = useAuthenticatedQuery( integrationKeys.list(), - (client) => client.getIntegrations("github") as Promise, + (client) => client.getIntegrations() as Promise, ); useEffect(() => {