Fix n8n Organization queries for moved compliance portal fields

Drop removed Connect Organization profile fields that break Get Many,
and return those fields from Compliance Portal Get.

Signed-off-by: Sacha Al Himdani <sacha@probo.com>
This commit is contained in:
Sacha Al Himdani
2026-07-22 16:07:11 +02:00
parent 00f5d0c4ba
commit 6313278c0d
5 changed files with 29 additions and 27 deletions

View File

@@ -52,10 +52,26 @@ export async function execute(
id
active
searchEngineIndexing
logoFileUrl
darkLogoFileUrl
ndaFileName
ndaFileUrl
entityName
description
websiteUrl
email
headquarterAddress
logo {
id
fileName
downloadUrl
}
darkLogo {
id
fileName
downloadUrl
}
nda {
id
fileName
downloadUrl
}
createdAt
updatedAt
}

View File

@@ -50,10 +50,6 @@ export async function execute(
organization {
id
name
description
websiteUrl
email
headquarterAddress
logo {
id
fileName
@@ -71,17 +67,14 @@ export async function execute(
}
`;
const variables = {
const responseData = await proboConnectApiRequest.call(this, query, {
input: {
name,
},
};
const responseData = await proboConnectApiRequest.call(this, query, variables);
});
return {
json: responseData,
pairedItem: { item: itemIndex },
};
}

View File

@@ -50,10 +50,6 @@ export async function execute(
... on Organization {
id
name
description
websiteUrl
email
headquarterAddress
logo {
id
fileName
@@ -71,15 +67,12 @@ export async function execute(
}
`;
const variables = {
const responseData = await proboConnectApiRequest.call(this, query, {
organizationId,
};
const responseData = await proboConnectApiRequest.call(this, query, variables);
});
return {
json: responseData,
pairedItem: { item: itemIndex },
};
}

View File

@@ -70,10 +70,6 @@ export async function execute(
organization {
id
name
description
websiteUrl
email
headquarterAddress
logo {
id
fileName
@@ -125,4 +121,3 @@ export async function execute(
pairedItem: { item: itemIndex },
};
}