mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix api call
This commit is contained in:
parent
e449ed01d2
commit
63357aad82
|
@ -38,7 +38,8 @@ export async function getWorkflows(context: IRestApiContext, options: WorkflowsF
|
|||
return await makeRestApiRequest<IWorkflowDb[]>(context, 'GET', '/workflows', {
|
||||
includeScopes: true,
|
||||
...options,
|
||||
credentialIds: options.credentialIds ? options.credentialIds.join(',') : undefined,
|
||||
credentialIds: options.credentialIds?.length ? options.credentialIds.join(',') : undefined,
|
||||
nodeTypes: options.nodeTypes?.length ? options.nodeTypes.join(',') : undefined,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue