fix(Pipedrive Node): Fix limit issue with Lead -> GetAll (#3436)

This commit is contained in:
Albrecht Schmidt 2022-06-13 21:39:20 +02:00 committed by GitHub
parent c121952324
commit 34e891c0f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4813,6 +4813,11 @@ export class Pipedrive implements INodeType {
// https://developers.pipedrive.com/docs/api/v1/Leads#getLeads
returnAll = this.getNodeParameter('returnAll', i) as boolean;
if (returnAll === false) {
qs.limit = this.getNodeParameter('limit', i) as number;
}
const filters = this.getNodeParameter('filters', i) as IDataObject;
if (Object.keys(filters).length) {