Fix error type

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-12-02 14:17:21 +01:00
parent d710f5af73
commit ae6b13eec8
6 changed files with 33 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
import type { INodeProperties, IExecuteFunctions, INodeExecutionData, IDataObject } from 'n8n-workflow';
import { proboApiRequestAllItems } from '../../GenericFunctions';
export const description: INodeProperties[] = [
@@ -138,7 +138,11 @@ export async function execute(
this,
query,
{ organizationId },
(response) => response?.data?.node?.data,
(response) => {
const responseData = response?.data as IDataObject | undefined;
const node = responseData?.node as IDataObject | undefined;
return node?.data as IDataObject | undefined;
},
returnAll,
limit,
);