Skip to content

Commit

Permalink
feat: exclude integration site id from meta request (#5744)
Browse files Browse the repository at this point in the history
Co-authored-by: Netlify Bot <[email protected]>
lemusthelroy and netlify-bot authored Jun 27, 2024
1 parent 9c70c48 commit 1129823
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/config/src/api/site_info.ts
Original file line number Diff line number Diff line change
@@ -157,7 +157,7 @@ const getIntegrations = async function ({
const baseUrl = new URL(host ? `http://${host}` : `https://api.netlifysdk.com`)

const url = useV2Endpoint
? `${baseUrl}team/${accountId}/integrations/installations/meta`
? `${baseUrl}team/${accountId}/integrations/installations/meta?exclude_site_id=${siteId}`
: `${baseUrl}site/${siteId}/integrations/safe`

try {
2 changes: 1 addition & 1 deletion packages/config/tests/api/tests.js
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ const SITE_INTEGRATIONS_RESPONSE = {
}

const TEAM_INSTALLATIONS_META_RESPONSE = {
path: '/team/account1/integrations/installations/meta',
path: '/team/account1/integrations/installations/meta?exclude_site_id=test',
response: [
{
slug: 'test',

0 comments on commit 1129823

Please sign in to comment.