Fix endpoint api call

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-02-03 09:01:40 +01:00
parent d0f077c197
commit 36b1095441
4 changed files with 8 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow'; import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
import { proboApiRequest } from '../../GenericFunctions'; import { proboConnectApiRequest } from '../../GenericFunctions';
export const description: INodeProperties[] = [ export const description: INodeProperties[] = [
{ {
@@ -51,7 +51,7 @@ export async function execute(
}, },
}; };
const responseData = await proboApiRequest.call(this, query, variables); const responseData = await proboConnectApiRequest.call(this, query, variables);
return { return {
json: responseData, json: responseData,

View File

@@ -1,5 +1,5 @@
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow'; import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
import { proboApiRequest } from '../../GenericFunctions'; import { proboConnectApiRequest } from '../../GenericFunctions';
export const description: INodeProperties[] = [ export const description: INodeProperties[] = [
{ {
@@ -32,7 +32,7 @@ export async function execute(
} }
`; `;
const responseData = await proboApiRequest.call(this, query, { input: { organizationId } }); const responseData = await proboConnectApiRequest.call(this, query, { input: { organizationId } });
return { return {
json: responseData, json: responseData,

View File

@@ -1,5 +1,5 @@
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow'; import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
import { proboApiRequest } from '../../GenericFunctions'; import { proboConnectApiRequest } from '../../GenericFunctions';
export const description: INodeProperties[] = [ export const description: INodeProperties[] = [
{ {
@@ -47,7 +47,7 @@ export async function execute(
organizationId, organizationId,
}; };
const responseData = await proboApiRequest.call(this, query, variables); const responseData = await proboConnectApiRequest.call(this, query, variables);
return { return {
json: responseData, json: responseData,

View File

@@ -1,5 +1,5 @@
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow'; import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
import { proboApiRequest } from '../../GenericFunctions'; import { proboConnectApiRequest } from '../../GenericFunctions';
export const description: INodeProperties[] = [ export const description: INodeProperties[] = [
{ {
@@ -121,7 +121,7 @@ export async function execute(
if (email) input.email = email; if (email) input.email = email;
if (headquarterAddress) input.headquarterAddress = headquarterAddress; if (headquarterAddress) input.headquarterAddress = headquarterAddress;
const responseData = await proboApiRequest.call(this, query, { input }); const responseData = await proboConnectApiRequest.call(this, query, { input });
return { return {
json: responseData, json: responseData,